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 jdemeyer
Recipients AVINASH MISHRA, jdemeyer, ncoghlan, remi.lapeyre, vstinner
Date 2019-01-10.20:07:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1547150869.58.0.0653812102776.issue35707@roundup.psfhosted.org>
In-reply-to
Content
> 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__
History
Date User Action Args
2019-01-10 20:07:50jdemeyersetrecipients: + jdemeyer, ncoghlan, vstinner, remi.lapeyre, AVINASH MISHRA
2019-01-10 20:07:49jdemeyersetmessageid: <1547150869.58.0.0653812102776.issue35707@roundup.psfhosted.org>
2019-01-10 20:07:49jdemeyerlinkissue35707 messages
2019-01-10 20:07:49jdemeyercreate