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 <1566193060.7.0.0198443532009.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().

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.
History
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: <1566193060.7.0.0198443532009.issue37819@roundup.psfhosted.org>
2019-08-19 05:37:40serhiy.storchakalinkissue37819 messages
2019-08-19 05:37:40serhiy.storchakacreate