]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
note abcs of int and float (closes #11977)
authorBenjamin Peterson <benjamin@python.org>
Sun, 1 May 2011 22:38:17 +0000 (17:38 -0500)
committerBenjamin Peterson <benjamin@python.org>
Sun, 1 May 2011 22:38:17 +0000 (17:38 -0500)
Doc/library/stdtypes.rst

index a1a38791b4124ec1659e29598464e94e807a077a..be7b2dcd651c4ca05e69fbe721825763a0cd5122 100644 (file)
@@ -353,8 +353,8 @@ Notes:
    for a complete list of code points with the ``Nd`` property.
 
 
-All :class:`numbers.Real` types (:class:`int` and
-:class:`float`) also include the following operations:
+All :class:`numbers.Real` types (:class:`int` and :class:`float`) also include
+the following operations:
 
 +--------------------+------------------------------------+--------+
 | Operation          | Result                             | Notes  |
@@ -438,6 +438,9 @@ Notes:
 Additional Methods on Integer Types
 -----------------------------------
 
+The int type implements the :class:`numbers.Integral` :term:`abstact base
+class`. In addition, it provides one more method
+
 .. method:: int.bit_length()
 
     Return the number of bits necessary to represent an integer in binary,
@@ -468,7 +471,8 @@ Additional Methods on Integer Types
 Additional Methods on Float
 ---------------------------
 
-The float type has some additional methods.
+The float type implements the :class:`numbers.Real` :term:`abstract base
+class`. float also has the following additional methods.
 
 .. method:: float.as_integer_ratio()