[Tutor] What is this [] construction?

Marc Tompkins marc.tompkins at gmail.com
Wed Mar 4 20:54:48 CET 2009

On Tue, Mar 3, 2009 at 11:56 PM, Alan Gauld <alan.gauld at btinternet.com>wrote:

> In Python v3 list comprehensions and generator expressions have been
> "merged" in that putting a GE inside [] has the same effect as a LC. In
> practice this makes little or no difference to the programmer its just how
> Python handles it behind the scenes.

In Python 3000, lists comprehend YOU!  (With apologies to Yakov Smirnoff...)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090304/92b7ed95/attachment.htm>

More information about the Tutor mailing list