This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients corona10, pablogsal, phsilva, skrah, vstinner
Date 2020-03-29.14:17:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
IMO 1.01x slower on a *microbenchmark* is not significant so it's ok. Thanks for checking.

You pass a *type to isinstance() in 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?
Date User Action Args
2020-03-29 14:17:02vstinnersetrecipients: + vstinner, phsilva, skrah, corona10, pablogsal
2020-03-29 14:17:02vstinnersetmessageid: <>
2020-03-29 14:17:02vstinnerlinkissue40077 messages
2020-03-29 14:17:02vstinnercreate