[New-bugs-announce] [issue37836] Support .as_integer_ratio() in fractions.Fraction

Jeroen Demeyer report at bugs.python.org
Tue Aug 13 05:41:19 EDT 2019


New submission from Jeroen Demeyer <jeroen.k.demeyer at gmail.com>:

Currently, the fractions.Fraction constructor accepts an .as_integer_ratio() method only for the specific types "float" and "Decimal". It would be good to support this for arbitrary classes.

This is part of what was proposed in #37822, but without adding the math.operator() function.

----------
components: Library (Lib)
messages: 349536
nosy: jdemeyer, mark.dickinson, rhettinger, serhiy.storchaka, stutzbach
priority: normal
severity: normal
status: open
title: Support .as_integer_ratio() in fractions.Fraction
versions: Python 3.9

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


More information about the New-bugs-announce mailing list