R. David Murray <rdmur...@bitdance.com> added the comment:

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.

----------
nosy: +r.david.murray

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue14845>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to