summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorAlex <a.v.shkop@gmail.com>2021-02-26 19:58:39 (GMT)
committerGitHub <noreply@github.com>2021-02-26 19:58:39 (GMT)
commitcc02b4f2e810ab524d845daa18bc94df5b092dd8 (patch)
tree1f17c435bcaa6a428fd66166ac1b77dc9e5b795e /Doc
parent5e48e836883ac577acd69c7b9bdfe5c439cef47f (diff)
downloadcpython-cc02b4f2e810ab524d845daa18bc94df5b092dd8.zip
cpython-cc02b4f2e810ab524d845daa18bc94df5b092dd8.tar.gz
cpython-cc02b4f2e810ab524d845daa18bc94df5b092dd8.tar.bz2
bpo-38302: __pow__/__rpow__ now called when __ipow__ returns NotImplemented (#16459)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/whatsnew/3.10.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.10.rst b/Doc/whatsnew/3.10.rst
index d353f33..310554e 100644
--- a/Doc/whatsnew/3.10.rst
+++ b/Doc/whatsnew/3.10.rst
@@ -276,6 +276,9 @@ Other Language Changes
the :meth:`~object.__int__` method but do not have the
:meth:`~object.__index__` method).
(Contributed by Serhiy Storchaka in :issue:`37999`.)
+* If :func:`object.__ipow__` returns :const:`NotImplemented`, the operator will
+ correctly fall back to :func:`object.__pow__` and :func:`object.__rpow__` as expected.
+ (Contributed by Alex Shkop in :issue:`38302`.)
* Assignment expressions can now be used unparenthesized within set literals
and set comprehensions, as well as in sequence indexes (but not slices).