This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients VA, ncoghlan, serhiy.storchaka
Date 2018-02-05.09:25:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1517822732.45.0.467229070634.issue32768@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2018-02-05 09:25:32serhiy.storchakasetrecipients: + serhiy.storchaka, ncoghlan, VA
2018-02-05 09:25:32serhiy.storchakasetmessageid: <1517822732.45.0.467229070634.issue32768@psf.upfronthosting.co.za>
2018-02-05 09:25:32serhiy.storchakalinkissue32768 messages
2018-02-05 09:25:32serhiy.storchakacreate