[Python-3000] Draft PEP for outer scopes

Ka-Ping Yee python at zesty.ca
Thu Nov 2 05:52:05 CET 2006


I wrote:
> I'm convinced that "global variable" means top-level for most
> programmers and so this usage would be confusing -- but i think we're
> all just repeating what we've said before.

Andrew McNamara wrote:
> But it doesn't mean "top-level" - it already comes with the qualifier
> "module".

This is exactly what "global variable" means in C, Perl, JavaScript,
Ruby, etc.

The global scope is the widest scope in which you can declare a variable.


-- ?!ng


More information about the Python-3000 mailing list