diff options
author | Nick Coghlan <ncoghlan@gmail.com> | 2016-09-11 04:45:49 (GMT) |
---|---|---|
committer | Nick Coghlan <ncoghlan@gmail.com> | 2016-09-11 04:45:49 (GMT) |
commit | 944368e1cc90a0bebaaf1a0a6f4346a81d8f46ad (patch) | |
tree | ea2c59fec386dfbe32c0f53ba8a85f75860e554d /Misc | |
parent | fc3f7d56773b3816eb0e8f4151239a0983aedb2c (diff) | |
download | cpython-944368e1cc90a0bebaaf1a0a6f4346a81d8f46ad.zip cpython-944368e1cc90a0bebaaf1a0a6f4346a81d8f46ad.tar.gz cpython-944368e1cc90a0bebaaf1a0a6f4346a81d8f46ad.tar.bz2 |
Issue #23722: Initialize __class__ from type.__new__()
The __class__ cell used by zero-argument super() is now initialized
from type.__new__ rather than __build_class__, so class methods
relying on that will now work correctly when called from metaclass
methods during class creation.
Patch by Martin Teichmann.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -10,6 +10,11 @@ What's New in Python 3.6.0 beta 1 Core and Builtins ----------------- +- Issue #23722: The __class__ cell used by zero-argument super() is now + initialized from type.__new__ rather than __build_class__, so class methods + relying on that will now work correctly when called from metaclass methods + during class creation. Patch by Martin Teichmann. + - Issue #25221: Fix corrupted result from PyLong_FromLong(0) when Python is compiled with NSMALLPOSINTS = 0. |