summaryrefslogtreecommitdiffstats
path: root/Doc/library/numbers.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/library/numbers.rst')
-rw-r--r--Doc/library/numbers.rst22
1 files changed, 11 insertions, 11 deletions
diff --git a/Doc/library/numbers.rst b/Doc/library/numbers.rst
index be6cf1f..c74bd47 100644
--- a/Doc/library/numbers.rst
+++ b/Doc/library/numbers.rst
@@ -27,18 +27,18 @@ The numeric tower
``-``, ``*``, ``/``, :func:`abs`, :meth:`conjugate`, ``==``, and ``!=``. All
except ``-`` and ``!=`` are abstract.
-.. attribute:: Complex.real
+ .. attribute:: real
- Abstract. Retrieves the :class:`Real` component of this number.
+ Abstract. Retrieves the :class:`Real` component of this number.
-.. attribute:: Complex.imag
+ .. attribute:: imag
- Abstract. Retrieves the :class:`Real` component of this number.
+ Abstract. Retrieves the :class:`Real` component of this number.
-.. method:: Complex.conjugate()
+ .. method:: conjugate()
- Abstract. Returns the complex conjugate. For example, ``(1+3j).conjugate() ==
- (1-3j)``.
+ Abstract. Returns the complex conjugate. For example, ``(1+3j).conjugate()
+ == (1-3j)``.
.. class:: Real
@@ -60,13 +60,13 @@ The numeric tower
should be in lowest terms. With these, it provides a default for
:func:`float`.
-.. attribute:: Rational.numerator
+ .. attribute:: numerator
- Abstract.
+ Abstract.
-.. attribute:: Rational.denominator
+ .. attribute:: denominator
- Abstract.
+ Abstract.
.. class:: Integral