Message290621
> $ ./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? |
|
Date |
User |
Action |
Args |
2017-03-27 15:41:13 | vstinner | set | recipients:
+ vstinner, mark.dickinson, serhiy.storchaka, niklasf |
2017-03-27 15:41:13 | vstinner | set | messageid: <1490629273.7.0.304502784912.issue29782@psf.upfronthosting.co.za> |
2017-03-27 15:41:13 | vstinner | link | issue29782 messages |
2017-03-27 15:41:13 | vstinner | create | |
|