]> granicus.if.org Git - python/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 da5db1d13b5077569ab96eaaab0d6e96174ec5bc..b4554b50463a4c68657d93e1c0df5fec38d89641 100644 (file)
@@ -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()