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 PyTiger
Recipients PyTiger, georg.brandl
Date 2008-12-05.16:31:12
SpamBayes Score 4.681069e-08
Marked as misclassified No
Message-id <1228494674.65.0.590088285872.issue4549@psf.upfronthosting.co.za>
In-reply-to
Content
"If a name is declared global, then all references and assignments go
directly to the middle scope containing the module’s global names.
Otherwise, all variables found outside of the innermost scope are
read-only (an attempt to write to such a variable will simply create a
new local variable in the innermost scope, leaving the identically named
outer variable unchanged)." ___excerpt from <The Python
Tutorial>-<Classes>-<Python Scopes and Name Spaces>

The above description is correct in Python 2.X.
Since 3.X introduced the "nonlocal" keyword, I think the above
description is obsolete, need to be upgraded.
History
Date User Action Args
2008-12-05 16:31:14PyTigersetrecipients: + PyTiger, georg.brandl
2008-12-05 16:31:14PyTigersetmessageid: <1228494674.65.0.590088285872.issue4549@psf.upfronthosting.co.za>
2008-12-05 16:31:13PyTigerlinkissue4549 messages
2008-12-05 16:31:12PyTigercreate