[issue44547] fraction.Fraction does not implement __int__.

Mark Dickinson report at bugs.python.org
Fri Jul 2 07:54:40 EDT 2021


Mark Dickinson <dickinsm at gmail.com> added the comment:

> As another data point, complex supporting __int__ is a little bit of an oddity, since all that __int__ method does is raise a TypeError.

This was fixed in 3.10: #41974

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44547>
_______________________________________


More information about the Python-bugs-list mailing list