[Python-checkins] cpython: meth.log2 doc: add a link to int.bit_length()

victor.stinner python-checkins at python.org
Wed Sep 21 03:35:58 CEST 2011


http://hg.python.org/cpython/rev/2d9c4635caf0
changeset:   72432:2d9c4635caf0
user:        Victor Stinner <victor.stinner at haypocalc.com>
date:        Wed Sep 21 03:35:18 2011 +0200
summary:
  meth.log2 doc: add a link to int.bit_length()

files:
  Doc/library/math.rst |  5 +++++
  1 files changed, 5 insertions(+), 0 deletions(-)


diff --git a/Doc/library/math.rst b/Doc/library/math.rst
--- a/Doc/library/math.rst
+++ b/Doc/library/math.rst
@@ -191,6 +191,11 @@
 
    .. versionadded:: 3.3
 
+   .. seealso::
+
+      :meth:`int.bit_length` returns the number of bits necessary to represent
+      an integer in binary, excluding the sign and leading zeros.
+
 
 .. function:: log10(x)
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list