Title: Support .as_integer_ratio() in fractions.Fraction
Type: Stage:
Components: Library (Lib) Versions: Python 3.9
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: jdemeyer, mark.dickinson, rhettinger, serhiy.storchaka, stutzbach
Priority: normal Keywords:

Created on 2019-08-13 09:41 by jdemeyer, last changed 2019-08-13 09:41 by jdemeyer.

Messages (1)
msg349536 - (view) Author: Jeroen Demeyer (jdemeyer) * Date: 2019-08-13 09:41
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.
Date User Action Args
2019-08-13 09:41:19jdemeyercreate