Tricky Areas in Python

Peter Hansen peter at engcorp.com
Mon Oct 24 16:12:18 EDT 2005


beza1e1 wrote:
> well, list comprehension is Python 2.4 and 2.3 is the standard in many
> OSes, so it is possibly not the most portable solution

You're probably remembering "generator expressions", which were added in 
Python 2.4 and aren't available in earlier versions.  They fit in a 
similar place in one's mind, anyway....

-Peter



More information about the Python-list mailing list