[Python-Dev] PEP for Better Control of Nested Lexical Scopes (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Thu Feb 23 01:16:11 CET 2006
- Previous message: [Python-Dev] PEP for Better Control of Nested Lexical Scopes
- Next message: [Python-Dev] PEP for Better Control of Nested Lexical Scopes
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Josiah Carlson wrote:
However, I believe global was and is necessary for the same reasons for globals in any other language.
Oddly, in Python, 'global' isn't actually necessary, since the module can always import itself and use attribute access.
Clearly, though, Guido must have thought at the time that it was worth providing an alternative way.
-- Greg Ewing, Computer Science Dept, +--------------------------------------+ University of Canterbury, | Carpe post meridiam! | Christchurch, New Zealand | (I'm not a morning person.) | greg.ewing at canterbury.ac.nz +--------------------------------------+
- Previous message: [Python-Dev] PEP for Better Control of Nested Lexical Scopes
- Next message: [Python-Dev] PEP for Better Control of Nested Lexical Scopes
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]