diff options
author | Christian Heimes <christian@cheimes.de> | 2008-01-14 04:13:37 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2008-01-14 04:13:37 (GMT) |
commit | c94e2b5c1282e649f763eb9ee8208a0a77268262 (patch) | |
tree | 6d619a5339c05cdacedfadebf1366dcd0434a86f /Doc | |
parent | f31b69f9dbfcb0d7f57147abcba47a940bd9430b (diff) | |
download | cpython-c94e2b5c1282e649f763eb9ee8208a0a77268262.zip cpython-c94e2b5c1282e649f763eb9ee8208a0a77268262.tar.gz cpython-c94e2b5c1282e649f763eb9ee8208a0a77268262.tar.bz2 |
Now that I've learnt about structseq objects I felt like converting sys.float_info to a structseq. It's
readonly and help(sys.float_info) explains the attributes nicely.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/c-api/concrete.rst | 2 | ||||
-rw-r--r-- | Doc/library/sys.rst | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Doc/c-api/concrete.rst b/Doc/c-api/concrete.rst index 713daab..623df36 100644 --- a/Doc/c-api/concrete.rst +++ b/Doc/c-api/concrete.rst @@ -559,7 +559,7 @@ Floating Point Objects .. cfunction:: PyObject* PyFloat_GetInfo(void) - Return a :ctype:`PyDictObject` object which contains information about the + Return a structseq instance which contains information about the precision, minimum and maximum values of a float. It's a thin wrapper around the header file :file:`float.h`. diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst index d830490..7dbf41e 100644 --- a/Doc/library/sys.rst +++ b/Doc/library/sys.rst @@ -280,12 +280,12 @@ always available. .. data:: float_info - A dict holding information about the float type. It contains low level + A structseq holding information about the float type. It contains low level information about the precision and internal representation. Please study your system's :file:`float.h` for more information. +---------------------+--------------------------------------------------+ - | key | explanation | + | attribute | explanation | +=====================+==================================================+ | :const:`epsilon` | Difference between 1 and the next representable | | | floating point number | |