summaryrefslogtreecommitdiffstats
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)
commit17ebbdb73ef6e2b9a15d6f30b4a65b91c836b9e8 (patch)
tree926415bd3d37241f29d7471df0a7deaf1f6db0ab
parent97cf585f4b701fd35524b3f92aa26ef35162f72e (diff)
downloadcpython-17ebbdb73ef6e2b9a15d6f30b4a65b91c836b9e8.zip
cpython-17ebbdb73ef6e2b9a15d6f30b4a65b91c836b9e8.tar.gz
cpython-17ebbdb73ef6e2b9a15d6f30b4a65b91c836b9e8.tar.bz2
note abcs of int and float (closes #11977)
-rw-r--r--Doc/library/stdtypes.rst6
1 files changed, 5 insertions, 1 deletions
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index da5db1d..b4554b5 100644
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -460,6 +460,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()
.. method:: long.bit_length()
@@ -491,7 +494,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()