commit | 944368e1cc90a0bebaaf1a0a6f4346a81d8f46ad | [log] [tgz] |
---|---|---|
author | Nick Coghlan <ncoghlan@gmail.com> | Sun Sep 11 14:45:49 2016 +1000 |
committer | Nick Coghlan <ncoghlan@gmail.com> | Sun Sep 11 14:45:49 2016 +1000 |
tree | ea2c59fec386dfbe32c0f53ba8a85f75860e554d | |
parent | fc3f7d56773b3816eb0e8f4151239a0983aedb2c [diff] |
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.