[Python-Dev] elimination of scope bleeding ofiteration variables (original) (raw)

Guido van Rossum guido at python.org
Wed May 3 01:46:43 CEST 2006


Don't worry. This isn't going to change. Someone please update PEP 3099.

On 5/2/06, Delaney, Timothy (Tim) <tdelaney at avaya.com> wrote:

Josiah Carlson wrote:

> for line in lines: > line = line.rstrip() > ... Exactly the use case I was thinking of (and one I used yesterday BTW). I'm -1 on disallowing reusing a name bound in a for loop in any construct i.e. +1 for the status quo.

-- --Guido van Rossum (home page: http://www.python.org/~guido/)



More information about the Python-Dev mailing list