Message84268
It's true, however, that there is a difference in behaviour between 2.x
and 3.x here.
In 2.x, the function containing the list comprehension is a generator.
In 3.x, it's the list comprehension itself which becomes a generator.
I'm not sure which one is more useful. Also, it's likely that this won't
be changed, because it's due to the compilation model of list
comprehensions (which are compiled as a separate code object in 3.x). |
|
Date |
User |
Action |
Args |
2009-03-27 15:53:35 | pitrou | set | recipients:
+ pitrou, qwjqwj |
2009-03-27 15:53:34 | pitrou | set | messageid: <1238169214.9.0.822488295005.issue5577@psf.upfronthosting.co.za> |
2009-03-27 15:53:33 | pitrou | link | issue5577 messages |
2009-03-27 15:53:33 | pitrou | create | |
|