[Tutor] What is this [] construction?

Alan Gauld alan.gauld at btinternet.com
Wed Mar 4 20:28:50 CET 2009

"Kent Johnson" <kent37 at tds.net> 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.
> I think you mean this (from 
> http://docs.python.org/3.0/whatsnew/3.0.html):

Yeah, that's what I was thinking about but my memory played tricks
and it doesn't say exactly what I thought it said! :-)

Alan G 

More information about the Tutor mailing list