[Python-checkins] cpython (3.2): Issue #12245: Document sys.float_info.rounds better.

mark.dickinson python-checkins at python.org
Sat Nov 19 17:27:38 CET 2011


http://hg.python.org/cpython/rev/795c184b0282
changeset:   73621:795c184b0282
branch:      3.2
parent:      73615:583aff635ce1
user:        Mark Dickinson <mdickinson at enthought.com>
date:        Sat Nov 19 16:26:45 2011 +0000
summary:
  Issue #12245: Document sys.float_info.rounds better.

files:
  Doc/library/sys.rst |  8 ++++++--
  1 files changed, 6 insertions(+), 2 deletions(-)


diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst
--- a/Doc/library/sys.rst
+++ b/Doc/library/sys.rst
@@ -296,8 +296,12 @@
    +---------------------+----------------+--------------------------------------------------+
    | :const:`radix`      | FLT_RADIX      | radix of exponent representation                 |
    +---------------------+----------------+--------------------------------------------------+
-   | :const:`rounds`     | FLT_ROUNDS     | constant representing rounding mode              |
-   |                     |                | used for arithmetic operations                   |
+   | :const:`rounds`     | FLT_ROUNDS     | integer constant representing the rounding mode  |
+   |                     |                | used for arithmetic operations.  This reflects   |
+   |                     |                | the value of the system FLT_ROUNDS macro at      |
+   |                     |                | interpreter startup time.  See section 5.2.4.2.2 |
+   |                     |                | of the C99 standard for an explanation of the    |
+   |                     |                | possible values and their meanings.              |
    +---------------------+----------------+--------------------------------------------------+
 
    The attribute :attr:`sys.float_info.dig` needs further explanation.  If

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


More information about the Python-checkins mailing list