This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jdemeyer
Recipients jdemeyer, mark.dickinson, rhettinger, serhiy.storchaka, stutzbach
Date 2019-08-13.09:41:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1565689279.74.0.17922836333.issue37836@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2019-08-13 09:41:19jdemeyersetrecipients: + jdemeyer, rhettinger, mark.dickinson, stutzbach, serhiy.storchaka
2019-08-13 09:41:19jdemeyersetmessageid: <1565689279.74.0.17922836333.issue37836@roundup.psfhosted.org>
2019-08-13 09:41:19jdemeyerlinkissue37836 messages
2019-08-13 09:41:19jdemeyercreate