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.

Author serhiy.storchaka
Recipients josh.r, mamrhein, mark.dickinson, serhiy.storchaka
Date 2021-07-02.20:33:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1625258030.06.0.248626243627.issue44547@roundup.psfhosted.org>
In-reply-to
Content
In ideal world we would use __int__ for (1), and __trunc__ for (2). But for some historical reasons __index__ was introduced for (1) and __int__ is only used in the int constructor, although it falls back to __trunc__.

I am wondering whether one of __int__ or __trunc__ should be deprecated.
History
Date User Action Args
2021-07-02 20:33:50serhiy.storchakasetrecipients: + serhiy.storchaka, mark.dickinson, mamrhein, josh.r
2021-07-02 20:33:50serhiy.storchakasetmessageid: <1625258030.06.0.248626243627.issue44547@roundup.psfhosted.org>
2021-07-02 20:33:50serhiy.storchakalinkissue44547 messages
2021-07-02 20:33:49serhiy.storchakacreate