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.

作者 jdemeyer
收信人 AVINASH MISHRA, jdemeyer, ncoghlan, remi.lapeyre, vstinner
日期 2019-01-10.20:07:49
SpamBayes Score -1.0
Marked as misclassified
Message-id <1547150869.58.0.0653812102776.issue35707@roundup.psfhosted.org>
In-reply-to
内容
> I'm not sure in which order the conversion should be tried to avoid/reduce precision loss during the conversion.

I would suggest the order

1. __index__ to ensure exact conversion of exact integers
2. __float__ to ensure correct conversion of floating-point numbers
3. __int__
历史
日期 用户 动作 参数
2019-01-10 20:07:50jdemeyer修改recipients: + jdemeyer, ncoghlan, vstinner, remi.lapeyre, AVINASH MISHRA
2019-01-10 20:07:49jdemeyer修改messageid: <1547150869.58.0.0653812102776.issue35707@roundup.psfhosted.org>
2019-01-10 20:07:49jdemeyer链接issue35707 messages
2019-01-10 20:07:49jdemeyer创建