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 skrah
Recipients Camion, levkivskyi, r.david.murray, skrah
Date 2017-12-19.20:47:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1513716467.72.0.213398074469.issue32361@psf.upfronthosting.co.za>
In-reply-to
Content
Okay, I have never used something like that. Personally, I'd
disallow the global statement in g() if 'a' is local in f().

>>> a = 10
>>> def f():
...     a = 20
...     def g():
...         global a
...         print(a)
...     g()
... 
>>> 
>>> f()
10
History
Date User Action Args
2017-12-19 20:47:47skrahsetrecipients: + skrah, r.david.murray, levkivskyi, Camion
2017-12-19 20:47:47skrahsetmessageid: <1513716467.72.0.213398074469.issue32361@psf.upfronthosting.co.za>
2017-12-19 20:47:47skrahlinkissue32361 messages
2017-12-19 20:47:47skrahcreate