On 10/15/21, Mark Dickinson <dicki...@gmail.com> wrote: > > the proposal would be to remove that special role of `__trunc__` and > reduce the `int` constructor to only looking at `__int__` and `__index__`.
For Real and Rational numbers, currently the required method to implement is __trunc__(). ISTM that this proposal should include a change to require __int__() in numbers.Real. _______________________________________________ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/R3JI6EGLMMBDNPCKFSNPLUNR2Q3ISAID/ Code of Conduct: http://python.org/psf/codeofconduct/