]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-119189: Fix the power operator for Fraction (GH-119242)
authorJoshua Herman <30265+zitterbewegung@users.noreply.github.com>
Fri, 31 May 2024 10:05:09 +0000 (05:05 -0500)
committerGitHub <noreply@github.com>
Fri, 31 May 2024 10:05:09 +0000 (10:05 +0000)
commitb9965ef282d6662145d2e05b080c811132ce6fde
tree32e9d038c66ae4352a55d6743cc3c39bca1ec3e6
parentdae0375bd97f3821c5db1602a0653a3c5dc53c5b
gh-119189:  Fix the power operator for Fraction (GH-119242)

When using the ** operator or pow() with Fraction as the base
and an exponent that is not rational, a float, or a complex, the
fraction is no longer converted to a float.
Lib/fractions.py
Lib/test/test_fractions.py
Misc/ACKS
Misc/NEWS.d/next/Library/2024-05-20-13-48-37.gh-issue-119189.dhJVs5.rst [new file with mode: 0644]