On 14/10/21 6:10 am, Antoine Pitrou wrote:
It seems that __int__ has now become a strict equivalent to __trunc__.
Not really -- __int__ is expected to return something of type int, whereas __trunc__ is expected to return the same type as its operand. -- Greg _______________________________________________ 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/5XD26XS2WW7H2I3KZBY5EZLNV64RX6VM/ Code of Conduct: http://python.org/psf/codeofconduct/