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

Creating a new type takes microseconds, and using PyObject_TypeCheck() instead 
of PyType_IsSubtype() can save nanoseconds. So, while this replacement looks 
harmless, its effect can hardly be measured even in microbenchmarks.

----------

_______________________________________
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