Message282587
| 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:23 | ncoghlan | set | recipients:
+ ncoghlan, arigo |
| 2016年12月07日 01:36:23 | ncoghlan | set | messageid: <1481074583.68.0.502804970382.issue28891@psf.upfronthosting.co.za> |
| 2016年12月07日 01:36:23 | ncoghlan | link | issue28891 messages |
| 2016年12月07日 01:36:22 | ncoghlan | create |
|