Creating a local variable scope.

Terry Reedy tjreedy at udel.edu
Mon Nov 30 05:20:10 CET 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