Guido van Rossum added the comment:
This isn't going to change. 'global' is one of those rare pieces of
syntax that are not executed by the interpreter but detected by the parser.
Note that there are other things like this, e.g. the presence of 'yield'
in a function makes it a generator.
FWIW,
New submission from Lee June:
hi, all. my friend found a strange behave with 'global', I posted it
in the '[EMAIL PROTECTED]' as this:
[quote]
why the following 2 prg give different results? a.py is ok, but b.py
is 'undefiend a'
I am using Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC
v.1