Eryk Sun added the comment:

Comprehensions evaluate the iterator for the outermost loop in the surrounding 
scope. The iterators for all inner loops are evaluated in the local scope of 
the comprehension itself.

nosy: +eryksun
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

Python tracker <>
Python-bugs-list mailing list

Reply via email to