[issue28716] Fractions instantiation revisited
Mark Dickinson
report at bugs.python.org
Tue Mar 13 07:14:31 EDT 2018
Mark Dickinson <dickinsm at gmail.com> added the comment:
[Eric Wieser]
> This would allow the numpy `np.floating` types to take part in `Fraction` conversion as well, which would be great.
I'm confused: as far as I can tell, the NumPy floating-point types don't implement `as_integer_ratio`. (Except for `np.float64`, which subclasses `float` and so inherits `is_integer_ratio` from it.) Or are you suggesting that _if_ they were to implement `as_integer_ratio` at some point in the future, then they'd become compatible with `Fraction`?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue28716>
_______________________________________
More information about the Python-bugs-list
mailing list