News for hackers. Stuff that matters.
Re:Python List Comprehensions Explained Visually by viraptor on Thursday December 03, 2015 @12:46AM (#10667981)
A good reason to use list comprehension for simple things though is that you can sometimes quickly change [...] to (...) and get an equivalent generator. With a loop, you'd have to extract it into a separate yielding function.

There are no comments on this comment yet.