Uh oh!
There was an error while loading. Please reload this page.
bpo-37836: support .as_integer_ratio() in Fraction - #15327
Conversation
When constructing instances of fractions.Fraction, the given numerator and denominator may now be any objects with an as_integer_ratio() method.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-Authored-By: Ashwin Ramaswami <aramaswamis@gmail.com>
rhettinger
commented
Apr 20, 2022
I believe we're decided that no one needs this and that it may even be hazardous — especially when accepting |
serhiy-storchaka
commented
Apr 21, 2022
I concur with @rhettinger. I am even think that if |
When constructing instances of fractions.Fraction, the given numerator
and denominator may now be any objects with an as_integer_ratio() method.
CC @serhiy-storchaka , @rhettinger
https://bugs.python.org/issue37836