]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-82017: Support as_integer_ratio() in the Fraction constructor (GH-120271)
authorSerhiy Storchaka <storchaka@gmail.com>
Fri, 19 Jul 2024 05:06:53 +0000 (08:06 +0300)
committerGitHub <noreply@github.com>
Fri, 19 Jul 2024 05:06:53 +0000 (08:06 +0300)
commitc8d2630995fc234f8276e35643a4a43e62224510
tree359d25600fe9da975fdc9ee45dbba022bb7c5978
parenteaf094c09b5b1c33435c60ef49b1cec78c32573c
gh-82017: Support as_integer_ratio() in the Fraction constructor (GH-120271)

Any objects that have the as_integer_ratio() method (e.g. numpy.float128)
can now be converted to a fraction.
Doc/library/fractions.rst
Doc/whatsnew/3.14.rst
Lib/fractions.py
Lib/test/test_fractions.py
Misc/NEWS.d/next/Library/2024-06-08-17-41-11.gh-issue-82017.WpSTGi.rst [new file with mode: 0644]