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 Dennis Sweeney, arhadthedev, itamaro, serhiy.storchaka
Date 2021-11-03.09:01:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1635930076.31.0.507371365182.issue45697@roundup.psfhosted.org>
In-reply-to
Content
The PyObject_TypeCheck() macro is used in performance critical cases. If it is not the case the PyType_IsSubtype() function can be used. Adding yet check in PyType_IsSubtype() will slow down more performance sensitive cases in which PyObject_TypeCheck() is used and speed up less performance sensitive cases. So there is no reason to add it.
History
Date User Action Args
2021-11-03 09:01:16serhiy.storchakasetrecipients: + serhiy.storchaka, Dennis Sweeney, itamaro, arhadthedev
2021-11-03 09:01:16serhiy.storchakasetmessageid: <1635930076.31.0.507371365182.issue45697@roundup.psfhosted.org>
2021-11-03 09:01:16serhiy.storchakalinkissue45697 messages
2021-11-03 09:01:16serhiy.storchakacreate