Tricky Areas in Python

Peter Hansen peter at
Mon Oct 24 22:12:18 CEST 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....


More information about the Python-list mailing list