[Python-checkins] cpython (2.7): note abcs of int and float (closes #11977)
benjamin.peterson
python-checkins at python.org
Mon May 2 00:37:46 CEST 2011
http://hg.python.org/cpython/rev/5b315145e525
changeset: 69750:5b315145e525
branch: 2.7
parent: 69748:bc5cd43c8d0c
user: Benjamin Peterson <benjamin at python.org>
date: Sun May 01 17:38:17 2011 -0500
summary:
note abcs of int and float (closes #11977)
files:
Doc/library/stdtypes.rst | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -460,6 +460,9 @@
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 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()
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list