Message341509
| Author |
serhiy.storchaka |
| Recipients |
Arfrever, amitava.b, benjamin.peterson, josh.r, r.david.murray, serhiy.storchaka, terry.reedy, trent |
| Date |
2019年05月06日.14:38:54 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1557153534.25.0.7903204122.issue20092@roundup.psfhosted.org> |
| In-reply-to |
| Content |
See also the discussion on the duplicated issue33039.
Few months ago I wrote the PR that makes constructors of int, float and complex to fall back to __index__ if corresponding special methods __int__, __float__ and __complex__ are not defined. I did not exposed it to public because binding __int__ to __index__ looks better to me. But perhaps some tests from that PR can be used in an alternate PR. |
|