Message257184
LGTM.
I haven't tested that "type(x) is float or type(x) is Decimal" is faster than alternatives ("type(x) in (float, Decimal)", or "isinstance(x, (float, Decimal))", or "hasattr(x, 'as_integer_ratio')") and believe you have tested this. |
|
Date |
User |
Action |
Args |
2015-12-29 13:29:04 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, rhettinger, terry.reedy, mark.dickinson, belopolsky, steven.daprano, skrah, python-dev, johnwalker |
2015-12-29 13:29:04 | serhiy.storchaka | set | messageid: <1451395744.38.0.0959383599787.issue25974@psf.upfronthosting.co.za> |
2015-12-29 13:29:04 | serhiy.storchaka | link | issue25974 messages |
2015-12-29 13:29:04 | serhiy.storchaka | create | |
|