Message393240
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(). |
|
Date |
User |
Action |
Args |
2021-05-08 07:05:20 | roryyorke | set | recipients:
+ roryyorke, docs@python |
2021-05-08 07:05:20 | roryyorke | set | messageid: <1620457520.68.0.450582144832.issue44072@roundup.psfhosted.org> |
2021-05-08 07:05:20 | roryyorke | link | issue44072 messages |
2021-05-08 07:05:20 | roryyorke | create | |
|