[issue44547] fraction.Fraction does not implement __int__.
Serhiy Storchaka
report at bugs.python.org
Tue Jul 6 04:29:47 EDT 2021
Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:
On other hand, there are classes which define __int__ but not __trunc__: UUID and IP4Address. So it makes sense to keep separate __int__ and __trunc__.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44547>
_______________________________________
More information about the Python-bugs-list
mailing list