summaryrefslogtreecommitdiffstats
path: root/Doc/library/numbers.rst
diff options
context:
space:
mode:
authorRory Yorke <rory.yorke@gmail.com>2021-05-14 22:01:48 (GMT)
committerGitHub <noreply@github.com>2021-05-14 22:01:48 (GMT)
commit4aa63d65a9971d14f1a2131b989dca0dab514a9d (patch)
treed44440ee0c1cbc5585cd412687b1b66a8817dbdf /Doc/library/numbers.rst
parentc10c2ec7a0e06975e8010c56c9c3270f8ea322ec (diff)
downloadcpython-4aa63d65a9971d14f1a2131b989dca0dab514a9d.zip
cpython-4aa63d65a9971d14f1a2131b989dca0dab514a9d.tar.gz
cpython-4aa63d65a9971d14f1a2131b989dca0dab514a9d.tar.bz2
bpo-44072: fix Complex, Integral docs for `**` (GH-25986)
In numbers module docstrings and docs.
Diffstat (limited to 'Doc/library/numbers.rst')
-rw-r--r--Doc/library/numbers.rst9
1 files changed, 5 insertions, 4 deletions
diff --git a/Doc/library/numbers.rst b/Doc/library/numbers.rst
index 1b59495..d37123c 100644
--- a/Doc/library/numbers.rst
+++ b/Doc/library/numbers.rst
@@ -27,8 +27,8 @@ The numeric tower
Subclasses of this type describe complex numbers and include the operations
that work on the built-in :class:`complex` type. These are: conversions to
:class:`complex` and :class:`bool`, :attr:`.real`, :attr:`.imag`, ``+``,
- ``-``, ``*``, ``/``, :func:`abs`, :meth:`conjugate`, ``==``, and ``!=``. All
- except ``-`` and ``!=`` are abstract.
+ ``-``, ``*``, ``/``, ``**``, :func:`abs`, :meth:`conjugate`, ``==``, and
+ ``!=``. All except ``-`` and ``!=`` are abstract.
.. attribute:: real
@@ -76,8 +76,9 @@ The numeric tower
Subtypes :class:`Rational` and adds a conversion to :class:`int`. Provides
defaults for :func:`float`, :attr:`~Rational.numerator`, and
- :attr:`~Rational.denominator`. Adds abstract methods for ``**`` and
- bit-string operations: ``<<``, ``>>``, ``&``, ``^``, ``|``, ``~``.
+ :attr:`~Rational.denominator`. Adds abstract methods for :func:`pow` with
+ modulus and bit-string operations: ``<<``, ``>>``, ``&``, ``^``, ``|``,
+ ``~``.
Notes for type implementors