[Python-ideas] For-loop variable scope: simultaneous possession and ingestion of cake

Greg Ewing greg.ewing at canterbury.ac.nz
Sat Oct 4 05:00:35 CEST 2008

Dillon Collins wrote:

> And, unless I'm mistaken, this would make for loops incompatible with 
> comprehensions:

No, the same thing would be done in list comprehensions
as well (except for preserving the final value, since
LC variables no longer leak).


More information about the Python-ideas mailing list