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 pitrou
Recipients Antony.Lee, Jim.Jewett, Trundle, Yury.Selivanov, barry, benjamin.peterson, cvrebert, daniel.urban, eric.araujo, ethan.furman, gcbirzan, georg.brandl, gvanrossum, jamesh, jwilk, ncoghlan, pitrou, yorik.sar
Date 2014-10-02.11:19:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1412248790.51.0.490219430727.issue12029@psf.upfronthosting.co.za>
In-reply-to
Content
> Since type has __subclasscheck__ (why I don't know)

Ouch, really? That means the PyType_IsSubtype path in PyObject_IsSubclass() is never taken?

I think we should add a tp_subclasscheck slot to minimize the general cost of this. Also, try to see if there aren't redundant type / tuple checks along the way.
History
Date User Action Args
2014-10-02 11:19:50pitrousetrecipients: + pitrou, gvanrossum, barry, georg.brandl, jamesh, ncoghlan, benjamin.peterson, jwilk, eric.araujo, Trundle, cvrebert, daniel.urban, yorik.sar, ethan.furman, Yury.Selivanov, Jim.Jewett, gcbirzan, Antony.Lee
2014-10-02 11:19:50pitrousetmessageid: <1412248790.51.0.490219430727.issue12029@psf.upfronthosting.co.za>
2014-10-02 11:19:50pitroulinkissue12029 messages
2014-10-02 11:19:50pitroucreate