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.

作者 ronaldoussoren
收信人 AVINASH MISHRA, jdemeyer, ncoghlan, remi.lapeyre, ronaldoussoren, serhiy.storchaka, vstinner
日期 2019-01-21.13:27:13
SpamBayes Score -1.0
Marked as misclassified
Message-id <1548077233.34.0.30519744952.issue35707@roundup.psfhosted.org>
In-reply-to
内容
> 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.
历史
日期 用户 动作 参数
2019-01-21 13:27:14ronaldoussoren修改recipients: + ronaldoussoren, ncoghlan, vstinner, serhiy.storchaka, jdemeyer, remi.lapeyre, AVINASH MISHRA
2019-01-21 13:27:13ronaldoussoren修改messageid: <1548077233.34.0.30519744952.issue35707@roundup.psfhosted.org>
2019-01-21 13:27:13ronaldoussoren链接issue35707 messages
2019-01-21 13:27:13ronaldoussoren创建