-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
bpo-37836: support .as_integer_ratio() in Fraction #15327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
When constructing instances of fractions.Fraction, the given numerator and denominator may now be any objects with an as_integer_ratio() method.
Misc/NEWS.d/next/Library/2019-08-18-22-29-59.bpo-37836.BbvvFm.rst
Outdated
Show resolved
Hide resolved
Misc/NEWS.d/next/Library/2019-08-18-22-29-59.bpo-37836.BbvvFm.rst
Outdated
Show resolved
Hide resolved
Co-Authored-By: Ashwin Ramaswami <aramaswamis@gmail.com>
I believe we're decided that no one needs this and that it may even be hazardous — especially when accepting |
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