Christian Heimes added the comment: without abc: $ time ./python Lib/test/regrtest.py test_decimal real 0m10.113s user 0m9.685s sys 0m0.196s
with numbers.Real subclass: $ time ./python Lib/test/regrtest.py test_decimal real 0m16.232s user 0m15.241s sys 0m0.384s Proposed patch: $ time ./python Lib/test/regrtest.py test_decimal real 0m11.128s user 0m9.533s sys 0m0.260s Only with if instance.__class__ in cls._abc_cache: return True $ time ./python Lib/test/regrtest.py test_decimal real 0m11.201s user 0m10.345s sys 0m0.292s Wow, __instancecheck__ must be called a *lot* of times. __________________________________ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1762> __________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com