Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

> 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?

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue17576>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to