Message257190
The clear winner for float and Decimal is hasattr(x, 'as_integer_ratio').
The other types are a bit disadvantaged if the lookup fails, but they
go through additional try/excepts anyway. |
|
Date |
User |
Action |
Args |
2015-12-29 14:30:03 | skrah | set | recipients:
+ skrah, rhettinger, terry.reedy, mark.dickinson, belopolsky, steven.daprano, python-dev, serhiy.storchaka, johnwalker |
2015-12-29 14:30:03 | skrah | set | messageid: <1451399403.07.0.648799558281.issue25974@psf.upfronthosting.co.za> |
2015-12-29 14:30:03 | skrah | link | issue25974 messages |
2015-12-29 14:30:02 | skrah | create | |
|