[Python-Dev] global statements outside functions/methods should raise SyntaxError (original) (raw)
Benjamin Peterson benjamin at python.org
Sun Nov 15 21:08:49 CET 2009
- Previous message: [Python-Dev] global statements outside functions/methods should raise SyntaxError
- Next message: [Python-Dev] global statements outside functions/methods should raise SyntaxError
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
2009/11/15 Michael Foord <fuzzyman at voidspace.org.uk>:
Well, personally I think it would be a good thing if this raised an exception during bytecode compilation - but it would fall under the moratorium and have to wait a few years.
It could probably be considered a bug, though, since the global statement in that case silently has absolutely no effect.
-- Regards, Benjamin
- Previous message: [Python-Dev] global statements outside functions/methods should raise SyntaxError
- Next message: [Python-Dev] global statements outside functions/methods should raise SyntaxError
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]