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 | skrah |
|---|---|
| Recipients | belopolsky, johnwalker, mark.dickinson, python-dev, rhettinger, serhiy.storchaka, skrah, steven.daprano, terry.reedy |
| Date | 2015年12月29日.14:30:02 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1451399403.07.0.648799558281.issue25974@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
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. |
|
| History | |||
|---|---|---|---|
| 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 | |