This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author roryyorke
Recipients docs@python, roryyorke
Date 2021-05-08.07:05:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1620457520.68.0.450582144832.issue44072@roundup.psfhosted.org>
In-reply-to
Content
Checked at commit 42fcad2, HEAD of main circa 8 May 2021.

cpython/Doc/library/numbers.rst says numbers.Complex subtypes "include the operations [...] ``+``, ``-``, ``*``, ``/``, :func:`abs`, :meth:`conjugate`, ``==``, and ``!=``"

and for numbers.Integral: "Adds abstract methods for ``**`` and"

However, in cpython/Lib/numbers.py, the class Complex has `__pow__` and `__rpow__` methods, which makes sense mathematically.  The numbers.Class docstring is also missing a mention of `**`.

class.Integral does define a three-argument __pow__ for three-argument pow().
History
Date User Action Args
2021-05-08 07:05:20roryyorkesetrecipients: + roryyorke, docs@python
2021-05-08 07:05:20roryyorkesetmessageid: <1620457520.68.0.450582144832.issue44072@roundup.psfhosted.org>
2021-05-08 07:05:20roryyorkelinkissue44072 messages
2021-05-08 07:05:20roryyorkecreate