]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Issue #23722: Initialize __class__ from type.__new__()
authorNick Coghlan <ncoghlan@gmail.com>
Sun, 11 Sep 2016 04:45:49 +0000 (14:45 +1000)
committerNick Coghlan <ncoghlan@gmail.com>
Sun, 11 Sep 2016 04:45:49 +0000 (14:45 +1000)
commit944368e1cc90a0bebaaf1a0a6f4346a81d8f46ad
treeea2c59fec386dfbe32c0f53ba8a85f75860e554d
parentfc3f7d56773b3816eb0e8f4151239a0983aedb2c
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.
Lib/importlib/_bootstrap_external.py
Lib/test/test_super.py
Misc/NEWS
Objects/typeobject.c
PC/launcher.c
Python/bltinmodule.c
Python/compile.c
Python/importlib_external.h