]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
meth.log2 doc: add a link to int.bit_length()
authorVictor Stinner <victor.stinner@haypocalc.com>
Wed, 21 Sep 2011 01:35:18 +0000 (03:35 +0200)
committerVictor Stinner <victor.stinner@haypocalc.com>
Wed, 21 Sep 2011 01:35:18 +0000 (03:35 +0200)
Doc/library/math.rst

index d68cf1157c0458d078c4b45cfd018720a0031b0f..62c0f34eefdd96965456c54249554826ede3e51c 100644 (file)
@@ -191,6 +191,11 @@ Power and logarithmic functions
 
    .. 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)