消息 [344386]
> 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:51 | serhiy.storchaka | 修改 | recipients:
+ serhiy.storchaka, barry, rhettinger, mark.dickinson, ncoghlan, vstinner, Arfrever, alex, docs@python, python-dev, eric.snow, mjacob |
| 2019-06-03 07:10:51 | serhiy.storchaka | 修改 | messageid: <1559545851.95.0.630272206643.issue17576@roundup.psfhosted.org> |
| 2019-06-03 07:10:51 | serhiy.storchaka | 链接 | issue17576 messages |
| 2019-06-03 07:10:51 | serhiy.storchaka | 创建 | |
|