[issue23722] During metaclass.__init__, super() of the constructed class does not work

Martin Teichmann report at bugs.python.org
Mon Mar 23 10:11:00 CET 2015


Martin Teichmann added the comment:

A note on the implementation:

The compiler leaves a __cell__ entry in the class' namespace, which
is then filled by type.__new__, and removed from the namespace by
the latter. This is the same way it is done for __qualname__.

As the patch tampers with the compiler, when testing the patch
don't forget to remove old .pyc files, otherwise strange things will
happen.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23722>
_______________________________________


More information about the Python-bugs-list mailing list