This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author tim.peters
Recipients
Date 2004-06-14.08:36:28
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=31435

Not a bug.  Ask on comp.lang.python for an explanation, or 
read the docs more carefully.  Short course:  'a' is local in 
test1 because 'a' is assigned to in test1.  It has no relation 
to the global named 'a'.  If you want test1 to use the global 
named 'a', put

    global a

as the first line of test1.
History
Date User Action Args
2007-08-23 14:22:34adminlinkissue972467 messages
2007-08-23 14:22:34admincreate