Message161030
I think the behavior is correct. next(x) is outside the for expression in the list comprehension, but 'list(x)' is an implicit 'for x in exp'. So I believe it is the doc that needs amplification. The PEP discussion is referring specifically to the leaking of the loop variable. |
|
Date |
User |
Action |
Args |
2012-05-18 02:26:50 | r.david.murray | set | recipients:
+ r.david.murray, ezio.melotti, Peter.Norvig |
2012-05-18 02:26:50 | r.david.murray | set | messageid: <1337308010.37.0.820423650659.issue14845@psf.upfronthosting.co.za> |
2012-05-18 02:26:49 | r.david.murray | link | issue14845 messages |
2012-05-18 02:26:49 | r.david.murray | create | |
|