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 CuriousLearner, gvanrossum, jdemeyer, lisroach, lukasz.langa, mark.dickinson, rhettinger, scoder, serhiy.storchaka
Date 2019-08-19.09:17:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1566206247.65.0.60768024508.issue37819@roundup.psfhosted.org>
In-reply-to
Content
> Sorry, but I do not understand why adding Fraction.as_integer_ratio() prevents adding math.as_integer_ratio().

I also support a public function for that. It seems that we're planning this "as_integer_ratio" thing to become public API, so why not have a function as Serhiy proposes?

I consider the situation with as_integer_ratio() very analogous to __index__ where we have operator.index(), so I would actually suggest operator.as_integer_ratio() but that's bikeshedding territory.
History
Date User Action Args
2019-08-19 09:17:27jdemeyersetrecipients: + jdemeyer, gvanrossum, rhettinger, mark.dickinson, scoder, lukasz.langa, serhiy.storchaka, lisroach, CuriousLearner
2019-08-19 09:17:27jdemeyersetmessageid: <1566206247.65.0.60768024508.issue37819@roundup.psfhosted.org>
2019-08-19 09:17:27jdemeyerlinkissue37819 messages
2019-08-19 09:17:27jdemeyercreate