Skip to content

Commit 7d628e3

Browse files
Update 2024-05-20-13-48-37.gh-issue-119189.dhJVs5.rst
1 parent 08898b4 commit 7d628e3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
This fixes a situation where raising a class with rpow in the class calling
2-
the exponent operator to raise it to the power of that class to not cast it
3-
as a float.
1+
fractions.Fraction.__pow__ no longer coerces itself to float for unrecognized exponent types, instead returning NotImplemented to defer to the exponent's __rpow__ as normal.

0 commit comments

Comments
 (0)