homepage

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 ncoghlan
Recipients arigo, ncoghlan
Date 2016年12月07日.01:36:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1481074583.68.0.502804970382.issue28891@psf.upfronthosting.co.za>
In-reply-to
Content
Breaking the concrete proposal out to its own post:
- for CPython, "nonlocal __class__" becomes a SyntaxError generated by the symbol table pass in the compiler in 3.7+ and a DeprecationWarning in 3.6.1+
- other implementations (including PyPy) can just make "nonlocal __class__" a SyntaxError immediately
- an explicit test be added to https://hg.python.org/cpython/file/default/Lib/test/test_super.py for 3.6+ that "__class__" and "__classcell__" don't show up in the class locals() during execution of the class body
History
Date User Action Args
2016年12月07日 01:36:23ncoghlansetrecipients: + ncoghlan, arigo
2016年12月07日 01:36:23ncoghlansetmessageid: <1481074583.68.0.502804970382.issue28891@psf.upfronthosting.co.za>
2016年12月07日 01:36:23ncoghlanlinkissue28891 messages
2016年12月07日 01:36:22ncoghlancreate

AltStyle によって変換されたページ (->オリジナル) /