[Python-Dev] elimination of scope bleeding ofiteration variables
Nick Coghlan
ncoghlan at gmail.com
Tue May 2 13:28:49 CEST 2006
Greg Ewing wrote:
> Josiah Carlson wrote:
>> and am +0 on the double use below:
>>
>> for x in y:
>> for x in z:
>
> Can anyone think of a plausible use case for that?
This really seems more like the domain of pychecker/pylint rather than the
compiler. The code may be a bad idea, but I don't see any reason to make it a
syntax error.
Cheers,
Nick.
--
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
---------------------------------------------------------------
http://www.boredomandlaziness.org
More information about the Python-Dev
mailing list