[Python-checkins] Fix typo and edit for clarity in the docstrings of sys.float_info. (GH-2251)

Serhiy Storchaka webhook-mailer at python.org
Mon Mar 26 05:41:34 EDT 2018


https://github.com/python/cpython/commit/0301c9bdd1ebd788d1334cf3fe06c48f35bab0dc
commit: 0301c9bdd1ebd788d1334cf3fe06c48f35bab0dc
branch: master
author: Stefano Taschini <taschini at users.noreply.github.com>
committer: Serhiy Storchaka <storchaka at gmail.com>
date: 2018-03-26T12:41:30+03:00
summary:

Fix typo and edit for clarity in the docstrings of sys.float_info. (GH-2251)

files:
M Objects/floatobject.c

diff --git a/Objects/floatobject.c b/Objects/floatobject.c
index 47a174c241e3..67f9e5d5b4ef 100644
--- a/Objects/floatobject.c
+++ b/Objects/floatobject.c
@@ -1,4 +1,3 @@
-
 /* Float object implementation */
 
 /* XXX There should be overflow checks here, but it's hard to check
@@ -54,7 +53,7 @@ static PyStructSequence_Field floatinfo_fields[] = {
                     "is representable"},
     {"max_10_exp",      "DBL_MAX_10_EXP -- maximum int e such that 10**e "
                     "is representable"},
-    {"min",             "DBL_MIN -- Minimum positive normalizer float"},
+    {"min",             "DBL_MIN -- Minimum positive normalized float"},
     {"min_exp",         "DBL_MIN_EXP -- minimum int e such that radix**(e-1) "
                     "is a normalized float"},
     {"min_10_exp",      "DBL_MIN_10_EXP -- minimum int e such that 10**e is "
@@ -64,7 +63,7 @@ static PyStructSequence_Field floatinfo_fields[] = {
     {"epsilon",         "DBL_EPSILON -- Difference between 1 and the next "
                     "representable float"},
     {"radix",           "FLT_RADIX -- radix of exponent"},
-    {"rounds",          "FLT_ROUNDS -- addition rounds"},
+    {"rounds",          "FLT_ROUNDS -- rounding mode"},
     {0}
 };
 



More information about the Python-checkins mailing list