diff options
author | Ammar Askar <ammar@ammaraskar.com> | 2020-09-09 18:01:38 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-09 18:01:38 (GMT) |
commit | 46bc21e1780016aaacd34e472f838dc792fb674c (patch) | |
tree | ae1b0dd0e0ff5f8d3ca53440e527c87a10f181ef /Doc/reference/datamodel.rst | |
parent | 5dd8b3d27a2c28c175ea42ecb5ea16ca1412084e (diff) | |
download | cpython-46bc21e1780016aaacd34e472f838dc792fb674c.zip cpython-46bc21e1780016aaacd34e472f838dc792fb674c.tar.gz cpython-46bc21e1780016aaacd34e472f838dc792fb674c.tar.bz2 |
[3.9] bpo-41688: Document bug in **= dispatching in the language data… (GH-22172)
I tossed in a "This bug is fixed in Python 3.10" sentence but I'm not sure if that's appropriate to have here.
Diffstat (limited to 'Doc/reference/datamodel.rst')
-rw-r--r-- | Doc/reference/datamodel.rst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst index a817408..fc304a1 100644 --- a/Doc/reference/datamodel.rst +++ b/Doc/reference/datamodel.rst @@ -2409,6 +2409,13 @@ left undefined. :ref:`faq-augmented-assignment-tuple-error`), but this behavior is in fact part of the data model. + .. note:: + + Due to a bug in the dispatching mechanism for ``**=``, a class that + defines :meth:`__ipow__` but returns ``NotImplemented`` would fail to + fall back to ``x.__pow__(y)`` and ``y.__rpow__(x)``. This bug is fixed + in Python 3.10. + .. method:: object.__neg__(self) object.__pos__(self) |