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 mark.dickinson, niklasf, serhiy.storchaka, vstinner
Date 2017-03-27.15:41:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1490629273.7.0.304502784912.issue29782@psf.upfronthosting.co.za>
In-reply-to
Content
> $ ./python -m timeit "12345678 == 12345678.0"
> 5000000 loops, best of 5: 40 nsec per loop

By the way, I check the bytecode to make sure that the compiler doesn't optimize that. I'm suprised that it's not replaced with True!

Is there a reason to perform the test at runtime?
History
Date User Action Args
2017-03-27 15:41:13vstinnersetrecipients: + vstinner, mark.dickinson, serhiy.storchaka, niklasf
2017-03-27 15:41:13vstinnersetmessageid: <1490629273.7.0.304502784912.issue29782@psf.upfronthosting.co.za>
2017-03-27 15:41:13vstinnerlinkissue29782 messages
2017-03-27 15:41:13vstinnercreate