Ignore:
Timestamp:
Mar 19, 2014, 11:31:01 PM (11 years ago)
Author:
dmik
Message:

python: Merge vendor 2.7.6 to trunk.

Location:
python/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • python/trunk

  • python/trunk/Doc/library/numbers.rst

    r2 r391  
    88
    99
    10 The :mod:`numbers` module (:pep:`3141`) defines a hierarchy of numeric abstract
    11 base classes which progressively define more operations.  None of the types
    12 defined in this module can be instantiated.
     10The :mod:`numbers` module (:pep:`3141`) defines a hierarchy of numeric
     11:term:`abstract base classes <abstract base class>` which progressively define
     12more operations.  None of the types defined in this module can be instantiated.
    1313
    1414
     
    3232   .. attribute:: real
    3333
    34       Abstract. Retrieves the :class:`Real` component of this number.
     34      Abstract. Retrieves the real component of this number.
    3535
    3636   .. attribute:: imag
    3737
    38       Abstract. Retrieves the :class:`Real` component of this number.
     38      Abstract. Retrieves the imaginary component of this number.
    3939
    4040   .. method:: conjugate()
     
    4848   numbers.
    4949
    50    In short, those are: a conversion to :class:`float`, :func:`trunc`,
     50   In short, those are: a conversion to :class:`float`, :func:`math.trunc`,
    5151   :func:`round`, :func:`math.floor`, :func:`math.ceil`, :func:`divmod`, ``//``,
    5252   ``%``, ``<``, ``<=``, ``>``, and ``>=``.
     
    7474.. class:: Integral
    7575
    76    Subtypes :class:`Rational` and adds a conversion to :class:`int`.
    77    Provides defaults for :func:`float`, :attr:`~Rational.numerator`, and
    78    :attr:`~Rational.denominator`, and bit-string operations: ``<<``,
    79    ``>>``, ``&``, ``^``, ``|``, ``~``.
     76   Subtypes :class:`Rational` and adds a conversion to :class:`int`.  Provides
     77   defaults for :func:`float`, :attr:`~Rational.numerator`, and
     78   :attr:`~Rational.denominator`.  Adds abstract methods for ``**`` and
     79   bit-string operations: ``<<``, ``>>``, ``&``, ``^``, ``|``, ``~``.
    8080
    8181
Note: See TracChangeset for help on using the changeset viewer.