Skip to content

Commit

Permalink
Update 2024-05-20-13-48-37.gh-issue-119189.dhJVs5.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
zitterbewegung authored May 20, 2024
1 parent 08898b4 commit 7d628e3
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
This fixes a situation where raising a class with rpow in the class calling
the exponent operator to raise it to the power of that class to not cast it
as a float.
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 comments on commit 7d628e3

Please sign in to comment.