[issue33073] Add as_integer_ratio() to int() objects

Tim Peters report at bugs.python.org
Thu Mar 15 13:12:13 EDT 2018


Tim Peters <tim at python.org> added the comment:

Thanks, Mark!  So if int.as_integer_ratio is added to the core, numpy.int64 won't magically have it too, regardless of whether we do or don't add an implementation to numbers.Rational.

As an end user, I'd be surprised if numpy.int64 didn't support the same stuff as core ints.  I doubt I'd care at all what numbers.Rational said in cases where it didn't.

But rather than argue about that, what would _you_ like to see done here?

----------

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


More information about the Python-bugs-list mailing list