[issue44710] Unexpected behavior in empty class with pass (Python 3.7.3)

Serhiy Storchaka report at bugs.python.org
Thu Jul 22 14:00:18 EDT 2021


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

Because super().__init__(name, bases, nmspc) does not have any effect. Type is created by the metaclass' __new__ method, and the __init__ method is virtually no-op.

----------
nosy: +serhiy.storchaka

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44710>
_______________________________________


More information about the Python-bugs-list mailing list