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 serhiy.storchaka
Recipients CuriousLearner, gvanrossum, lisroach, lukasz.langa, mark.dickinson, rhettinger, scoder, serhiy.storchaka
Date 2019-08-19.05:37:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Sorry, but I do not understand why adding Fraction.as_integer_ratio() prevents adding math.as_integer_ratio().

The user code can not benefit from this until we add as_integer_ratio() to all numeric numbers, and this is not realistic. For the same reason there is str.join() which works with arbitrary iterable instead of adding the join() method to all collections, iterators and generators.

math.as_integer_ratio() makes the user code more general, clear and fast.
Date User Action Args
2019-08-19 05:37:40serhiy.storchakasetrecipients: + serhiy.storchaka, gvanrossum, rhettinger, mark.dickinson, scoder, lukasz.langa, lisroach, CuriousLearner
2019-08-19 05:37:40serhiy.storchakasetmessageid: <>
2019-08-19 05:37:40serhiy.storchakalinkissue37819 messages
2019-08-19 05:37:40serhiy.storchakacreate