summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2011-05-01 22:38:17 (GMT)
committerBenjamin Peterson <benjamin@python.org>2011-05-01 22:38:17 (GMT)
commit10116d40d8794825c42b2440524411cd406d1f93 (patch)
tree8727c209c6c425ac253c5aeb4451babf28a8210e /Doc
parent13aaef53bedea02ddc4bcb8a181fa37344ad227a (diff)
downloadcpython-10116d40d8794825c42b2440524411cd406d1f93.zip
cpython-10116d40d8794825c42b2440524411cd406d1f93.tar.gz
cpython-10116d40d8794825c42b2440524411cd406d1f93.tar.bz2
note abcs of int and float (closes #11977)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/stdtypes.rst10
1 files changed, 7 insertions, 3 deletions
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index a1a3879..be7b2dc 100644
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -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()