[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.
This commit is contained in:
Ammar Askar 2020-09-09 14:01:38 -04:00 committed by GitHub
parent 5dd8b3d27a
commit 46bc21e178
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -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)