Author ronaldoussoren
Recipients AVINASH MISHRA, jdemeyer, ncoghlan, remi.lapeyre, ronaldoussoren, serhiy.storchaka, vstinner
Date 2019-01-21.13:27:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1548077233.34.0.30519744952.issue35707@roundup.psfhosted.org>
In-reply-to
Content
> In other words: if we can only use __float__ and __int__, how do we know which one to use?

I guess __index__. I've read the definition of object.__index__ in the data model documentation, and using __index__ for this conversion is fine. I need to educate my sense for when it's right to use this method...

Sorry about the noise.
History
Date User Action Args
2019-01-21 13:27:14ronaldoussorensetrecipients: + ronaldoussoren, ncoghlan, vstinner, serhiy.storchaka, jdemeyer, remi.lapeyre, AVINASH MISHRA
2019-01-21 13:27:13ronaldoussorensetmessageid: <1548077233.34.0.30519744952.issue35707@roundup.psfhosted.org>
2019-01-21 13:27:13ronaldoussorenlinkissue35707 messages
2019-01-21 13:27:13ronaldoussorencreate