Message333416
| 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__ |
|