Message 396876 - Python tracker (original) (raw)

Message396876

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:50 serhiy.storchaka set recipients: + serhiy.storchaka, mark.dickinson, mamrhein, josh.r
2021-07-02 20:33:50 serhiy.storchaka set messageid: 1625258030.06.0.248626243627.issue44547@roundup.psfhosted.org
2021-07-02 20:33:50 serhiy.storchaka link issue44547 messages
2021-07-02 20:33:49 serhiy.storchaka create