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 r.david.murray
Recipients Camion, levkivskyi, r.david.murray, skrah
Date 2017-12-19.13:35:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1513690545.91.0.213398074469.issue32361@psf.upfronthosting.co.za>
In-reply-to
Content
When I said "the only thing keeping this issue open" is the message, I should acknowledge that you mentioned clarifying the documentation, but as I pointed out the documentation is already clear: it says nonlocal does not access variables in the global scope, and in your example 'a' is a variable in the global scope, because it is declared to be one.  We generally don't update PEPs after they are accepted and implemented; after that point the documentation is the real reference since the implementation may actually be different in detail than the PEP due to later enhancements. The PEP is still useful as an historical document.  (There are exceptions to that, but that is the general rule.)
History
Date User Action Args
2017-12-19 13:35:45r.david.murraysetrecipients: + r.david.murray, skrah, levkivskyi, Camion
2017-12-19 13:35:45r.david.murraysetmessageid: <1513690545.91.0.213398074469.issue32361@psf.upfronthosting.co.za>
2017-12-19 13:35:45r.david.murraylinkissue32361 messages
2017-12-19 13:35:45r.david.murraycreate