Message282587
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 |
|
| 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 | |
|