Serhiy Storchaka <[email protected]> added the comment:
The problem is that
class C(B):
pass
C.__bases__ = (A,)
and
class C(A):
pass
are not fully equivalent.
In the first case type->tp_new != object_new.
----------
components: +Interpreter Core
nosy: +ncoghlan, serhiy.storchaka
versions: +Python 3.7, Python 3.8
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue32768>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com