[Python-checkins] cpython: Grammatical fix for a comment for log2, to avoid referring to an *algorithm* as

mark.dickinson python-checkins at python.org
Mon May 9 09:40:28 CEST 2011


http://hg.python.org/cpython/rev/627780933948
changeset:   69973:627780933948
user:        Mark Dickinson <mdickinson at enthought.com>
date:        Mon May 09 08:40:20 2011 +0100
summary:
  Grammatical fix for a comment for log2, to avoid referring to an *algorithm* as monotonic.

files:
  Modules/mathmodule.c |  4 +++-
  1 files changed, 3 insertions(+), 1 deletions(-)


diff --git a/Modules/mathmodule.c b/Modules/mathmodule.c
--- a/Modules/mathmodule.c
+++ b/Modules/mathmodule.c
@@ -581,8 +581,10 @@
    log2: log to base 2.
 
    Uses an algorithm that should:
+
      (a) produce exact results for powers of 2, and
-     (b) be monotonic, assuming that the system log is monotonic.
+     (b) give a monotonic log2 (for positive finite floats),
+         assuming that the system log is monotonic.
 */
 
 static double

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


More information about the Python-checkins mailing list