STINNER Victor <vstin...@python.org> added the comment:

IMO 1.01x slower on a *microbenchmark* is not significant so it's ok. Thanks 
for checking.

You pass a *type to isinstance() in bench_isinstance_check.py. You should pass 
*an instance* instead. Like (complete the (...) ;-)):

runner.timeit(name="bench _abc_instancecheck",
              stmt="isinstance(obj, T)",
              setup = """from abc import ABC (...) obj = (1, 2, 3)""")

Would you mind to fix your microbenchmark and re-run it?

----------

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

Reply via email to