New submission from Serhiy Storchaka <storchaka+cpyt...@gmail.com>:
Use only the __index__() method for implicit conversion to iteger, and not __int__(). This converts deprecation warnings added in issue36048 into TypeError. ---------- components: Interpreter Core messages: 350947 nosy: serhiy.storchaka priority: normal severity: normal status: open title: No longer use implicit convertion to int with loss type: enhancement _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue37999> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com