Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

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.

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

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue45697>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to