Creating a local variable scope.

Terry Reedy tjreedy at udel.edu
Sun Nov 29 23:20:10 EST 2009


markolopa wrote:

> 
> so "domain" should not exist in my namespace since I have no
> information associated to "domain" only to "self.domains". Python
> should allow me to write safe code!

Leaving iteration names bound after loop exit is a feature. If you do 
not like it, explicitly unbind it.




More information about the Python-list mailing list