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 Camion
Recipients Camion, levkivskyi, r.david.murray, skrah
Date 2017-12-19.20:08:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1513714125.66.0.213398074469.issue32361@psf.upfronthosting.co.za>
In-reply-to
Content
David and Stefan, you're both missing my main point which is the fact that the presence of the global declaration in the parent (g) **blocks the access to the grand parent context**, which would be accessible without this global declaration (of another variable since that one is global. It just happen to have the same name) in g; and the stackoverflow post also ignores this question.

I do not disagree that this might be a desired feature (we might wish to reject this because of the potential confusion caused by this kind of name collision situation), but without any clear specification on it (since this point doesn't seem to have been discussed in the (or any?) PEP), it could always be challenged as a design flaw.
History
Date User Action Args
2017-12-19 20:08:45Camionsetrecipients: + Camion, r.david.murray, skrah, levkivskyi
2017-12-19 20:08:45Camionsetmessageid: <1513714125.66.0.213398074469.issue32361@psf.upfronthosting.co.za>
2017-12-19 20:08:45Camionlinkissue32361 messages
2017-12-19 20:08:45Camioncreate