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.

作者 serhiy.storchaka
收信人 Arfrever, alex, barry, docs@python, eric.snow, mark.dickinson, mjacob, ncoghlan, python-dev, rhettinger, serhiy.storchaka, vstinner
日期 2019-06-03.07:10:51
SpamBayes Score -1.0
Marked as misclassified
Message-id <1559545851.95.0.630272206643.issue17576@roundup.psfhosted.org>
In-reply-to
内容
> Can we at least switch to PyLong_CheckExact?

This is a behavior change and as such should be preceded by a period of warning.

If we go this way I propose to add a FutureWarning for int subclasses with overridden __index__.

As for turning the deprecated behaviour into TypeErrors, we added yet few deprecation warnings in 3.8. Would not be better to turn all of them into TypeErrors at the same time?
历史
日期 用户 动作 参数
2019-06-03 07:10:51serhiy.storchaka修改recipients: + serhiy.storchaka, barry, rhettinger, mark.dickinson, ncoghlan, vstinner, Arfrever, alex, docs@python, python-dev, eric.snow, mjacob
2019-06-03 07:10:51serhiy.storchaka修改messageid: <1559545851.95.0.630272206643.issue17576@roundup.psfhosted.org>
2019-06-03 07:10:51serhiy.storchaka链接issue17576 messages
2019-06-03 07:10:51serhiy.storchaka创建