[issue2303] isinstance is 4x as slow as in 2.5 because the common case raises

Thomas Heller report at bugs.python.org
Tue Mar 18 17:21:47 CET 2008


Thomas Heller <theller at ctypes.org> added the comment:

Would it help to implement a default __instancecheck__ and
__subclasscheck__ for object (or for type), that subclasses can override?

----------
nosy: +theller

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2303>
__________________________________


More information about the Python-bugs-list mailing list