News for hackers. Stuff that matters.
Re:Why People Should Learn Python by amyjess on Wednesday August 24, 2016 @11:30AM (#12352737)
FYI, you can leave off the square brackets for a small performance boost. That turns it from a list comprehension into a generator expression, which is lazily evaluated and doesn't create a list container (which would immediately be thrown out anyway). It's like the difference between range(n) and xrange(n).
Re:Why People Should Learn Python by minikomi on Thursday August 25, 2016 @12:33AM (#12356986)
Nice, thanks for the tip.