[Python-checkins] cpython: note the point of having log2

benjamin.peterson python-checkins at python.org
Mon May 9 02:46:12 CEST 2011


http://hg.python.org/cpython/rev/5107b11c6d6b
changeset:   69948:5107b11c6d6b
user:        Benjamin Peterson <benjamin at python.org>
date:        Sun May 08 19:48:08 2011 -0500
summary:
  note the point of having log2

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


diff --git a/Doc/library/math.rst b/Doc/library/math.rst
--- a/Doc/library/math.rst
+++ b/Doc/library/math.rst
@@ -186,7 +186,8 @@
 
 .. function:: log2(x)
 
-   Return the base-2 logarithm of *x*.
+   Return the base-2 logarithm of *x*. This is usually more accurate than
+   ``log(x, 2)``.
 
    .. versionadded:: 3.3
 

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


More information about the Python-checkins mailing list