Creating a local variable scope.

Terry Reedy tjreedy at
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 "". 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