[Python-ideas] A conditional "for" statement

Greg Ewing greg.ewing at canterbury.ac.nz
Fri Apr 24 02:22:10 CEST 2009

Michael S. Gilbert wrote:
> It actually takes longer to use the
> list comprehension (for all exclusion percentages), which, for me at
> least, is completely unintuitive.

The LC version is doing everything that the non-LC
version is doing, plus building a list. Doing more
work takes longer.


More information about the Python-ideas mailing list