News for hackers. Stuff that matters.
Re:Python 3.11 vs 3.10 performance by gpderetta on Thursday July 07, 2022 @06:14AM (#32012058)
But why? The only reason is that error messages are awful and intermediate values can't be named. There is in principle no reason why list comprehension need to be worse than straight line for loops. The deciding factor to chose betwee the two should be whether I'm writing something for side effects as opposed to for its value.
Re:Python 3.11 vs 3.10 performance by mcronce on Saturday July 09, 2022 @02:49AM (#32032530)
You just listed two very good reasons: Intermediate values can't be named, and error messages are awful.