➜

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.

作者 mark.dickinson
收信人 Austin Bingham, christian.heimes, gvanrossum, mark.dickinson, rhettinger, robert_smallshire, serhiy.storchaka, tim.peters
日期 2020-10-04.08:13:54
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <1601799234.82.0.859262937759.issue26680@roundup.psfhosted.org>
In-reply-to
内容
I interpreted "in the numeric tower" as meaning declared as an abstract method that all those registering with the class would have to implement. As you point out in msg350173, that would be problematic - adding new methods to published interfaces is pretty much a no-no for backwards compatibility reasons.

But that's not what happened here. Robert's original patch *did* add is_integer as an abstract method. The PR that was merged did not - it was added as a concrete method, as a convenience for those using the ABCs via direct subclassing rather than registering.
历史
日期 用户 动作 参数
2020-10-04 08:13:54mark.dickinson修改recipients: + mark.dickinson, gvanrossum, tim.peters, rhettinger, christian.heimes, serhiy.storchaka, robert_smallshire, Austin Bingham
2020-10-04 08:13:54mark.dickinson修改messageid: <1601799234.82.0.859262937759.issue26680@roundup.psfhosted.org>
2020-10-04 08:13:54mark.dickinson链接issue26680 messages
2020-10-04 08:13:54mark.dickinson创建