From 17ebbdb73ef6e2b9a15d6f30b4a65b91c836b9e8 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sun, 1 May 2011 17:38:17 -0500 Subject: [PATCH] note abcs of int and float (closes #11977) --- Doc/library/stdtypes.rst | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index da5db1d13b..b4554b5046 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() -- 2.40.0