From 7d628e35e9b5af98450e48a013bdfe2bc9fb5651 Mon Sep 17 00:00:00 2001 From: Joshua Herman <30265+zitterbewegung@users.noreply.github.com> Date: Mon, 20 May 2024 15:52:59 -0400 Subject: [PATCH] Update 2024-05-20-13-48-37.gh-issue-119189.dhJVs5.rst --- .../Library/2024-05-20-13-48-37.gh-issue-119189.dhJVs5.rst | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Misc/NEWS.d/next/Library/2024-05-20-13-48-37.gh-issue-119189.dhJVs5.rst b/Misc/NEWS.d/next/Library/2024-05-20-13-48-37.gh-issue-119189.dhJVs5.rst index c39ccc0fdce61a3..7941991ab57cf11 100644 --- a/Misc/NEWS.d/next/Library/2024-05-20-13-48-37.gh-issue-119189.dhJVs5.rst +++ b/Misc/NEWS.d/next/Library/2024-05-20-13-48-37.gh-issue-119189.dhJVs5.rst @@ -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.