summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorNick Coghlan <ncoghlan@gmail.com>2016-09-11 04:45:49 (GMT)
committerNick Coghlan <ncoghlan@gmail.com>2016-09-11 04:45:49 (GMT)
commit944368e1cc90a0bebaaf1a0a6f4346a81d8f46ad (patch)
treeea2c59fec386dfbe32c0f53ba8a85f75860e554d /Misc
parentfc3f7d56773b3816eb0e8f4151239a0983aedb2c (diff)
downloadcpython-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/NEWS5
1 files changed, 5 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 7ce5391..f594f00 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -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.