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 prescod
Recipients
Date 2001-04-13.22:21:40
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Call this test.py:

abc = 5
global abc
abc = 6

It is probably illegal to have a global at the top-
level but the error message prdocued is:

SyntaxWarning: name 'abc' is assigned to before global 
declaration

That's technically true but the real problm is that 
global statements should not be allowed outside of 
functions.
History
Date User Action Args
2007-08-23 13:53:51adminlinkissue416034 messages
2007-08-23 13:53:51admincreate