summaryrefslogtreecommitdiffstats
path: root/Doc/library/numbers.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-01-02 20:25:14 (GMT)
committerGeorg Brandl <georg@python.org>2009-01-02 20:25:14 (GMT)
commitfc29f27c162a236d2d879ab3fb803110628a0ccf (patch)
treecc68b3ee5ebf96d0e63161394c80a499f21ecae5 /Doc/library/numbers.rst
parent511048673f8635b12f683eb9fc09f42c8ab871c7 (diff)
downloadcpython-fc29f27c162a236d2d879ab3fb803110628a0ccf.zip
cpython-fc29f27c162a236d2d879ab3fb803110628a0ccf.tar.gz
cpython-fc29f27c162a236d2d879ab3fb803110628a0ccf.tar.bz2
#4811: fix markup glitches (mostly remains of the conversion),
found by Gabriel Genellina.
Diffstat (limited to 'Doc/library/numbers.rst')
-rw-r--r--Doc/library/numbers.rst12
1 files changed, 6 insertions, 6 deletions
diff --git a/Doc/library/numbers.rst b/Doc/library/numbers.rst
index b7aafb2..b0d55a7 100644
--- a/Doc/library/numbers.rst
+++ b/Doc/library/numbers.rst
@@ -51,14 +51,14 @@ The numeric tower
:func:`round`, :func:`math.floor`, :func:`math.ceil`, :func:`divmod`, ``//``,
``%``, ``<``, ``<=``, ``>``, and ``>=``.
- Real also provides defaults for :func:`complex`, :attr:`Complex.real`,
- :attr:`Complex.imag`, and :meth:`Complex.conjugate`.
+ Real also provides defaults for :func:`complex`, :attr:`~Complex.real`,
+ :attr:`~Complex.imag`, and :meth:`~Complex.conjugate`.
.. class:: Rational
Subtypes :class:`Real` and adds
- :attr:`Rational.numerator` and :attr:`Rational.denominator` properties, which
+ :attr:`~Rational.numerator` and :attr:`~Rational.denominator` properties, which
should be in lowest terms. With these, it provides a default for
:func:`float`.
@@ -74,8 +74,8 @@ The numeric tower
.. class:: Integral
Subtypes :class:`Rational` and adds a conversion to :class:`int`.
- Provides defaults for :func:`float`, :attr:`Rational.numerator`, and
- :attr:`Rational.denominator`, and bit-string operations: ``<<``,
+ Provides defaults for :func:`float`, :attr:`~Rational.numerator`, and
+ :attr:`~Rational.denominator`, and bit-string operations: ``<<``,
``>>``, ``&``, ``^``, ``|``, ``~``.
@@ -171,7 +171,7 @@ Complex``. I'll consider ``a + b``:
knowledge of ``A``, so it can handle those instances before
delegating to :class:`Complex`.
-If ``A<:Complex`` and ``B<:Real`` without sharing any other knowledge,
+If ``A <: Complex`` and ``B <: Real`` without sharing any other knowledge,
then the appropriate shared operation is the one involving the built
in :class:`complex`, and both :meth:`__radd__` s land there, so ``a+b
== b+a``.