Eric Smith <e...@trueblade.com> added the comment:

When python sees the assignment "name = None", it assumes that 'name' is a 
local variable. This happens before any code is executed. It then sees that 
you're printing 'name' before it is assigned to, which is an error. It does not 
take into account the dynamic creation of the module level variable.

----------
nosy: +eric.smith
resolution:  -> invalid
status: open -> closed

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue10043>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to