Message333547
| Author |
ncoghlan |
| Recipients |
AVINASH MISHRA, jdemeyer, ncoghlan, remi.lapeyre, vstinner |
| Date |
2019年01月13日.07:50:30 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1547365830.29.0.246668563549.issue35707@roundup.psfhosted.org> |
| In-reply-to |
| Content |
Deriving __int__ from __float__ wouldn't be the right answer, as that can easily lead to unwanted OverflowError exceptions and other issues.
However, Jeroen's suggested order of checking __index__ then __float__ then __int__ in _PyTime_FromObject makes sense to me, as that addresses Victor's desire to use the most precise conversion available. |
|