removing list comprehensions in Python 3.0

Raymond Hettinger python at rcn.com
Sat Jul 9 22:42:05 EDT 2005


[Steven Bethard]
> I would hope that in Python 3.0 list comprehensions and generator
> expressions would be able to share a large amount of implementation, and
> thus that the speed differences would be much smaller.  But maybe not...

Looking under the hood, you would see that the implementations are
necessarily as different as night and day.  Only the API is similar.


Raymond




More information about the Python-list mailing list