summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-05-01 15:37:04 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2009-05-01 15:37:04 (GMT)
commit33841c34896834daa8ee38d3ff54d7800b9723c2 (patch)
tree1de0e45e427cc30b610fb4813e201ddef264e251 /Doc
parentf489caf5daa2b0f3a1bd951b585c834aab1a54c6 (diff)
downloadcpython-33841c34896834daa8ee38d3ff54d7800b9723c2.zip
cpython-33841c34896834daa8ee38d3ff54d7800b9723c2.tar.gz
cpython-33841c34896834daa8ee38d3ff54d7800b9723c2.tar.bz2
Issue #5859: Remove '%f' to '%g' formatting switch for large floats.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/stdtypes.rst10
1 files changed, 3 insertions, 7 deletions
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index 72e2fb4..c8c2c80 100644
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -1321,9 +1321,9 @@ that ``'\0'`` is the end of the string.
.. XXX Examples?
-For safety reasons, floating point precisions are clipped to 50; ``%f``
-conversions for numbers whose absolute value is over 1e50 are replaced by ``%g``
-conversions. [#]_ All other errors raise exceptions.
+.. versionchanged:: 3.1
+ ``%f`` conversions for numbers whose absolute value is over 1e50 are no
+ longer replaced by ``%g`` conversions.
.. index::
module: string
@@ -2723,10 +2723,6 @@ The following attributes are only supported by :term:`new-style class`\ es.
.. [#] To format only a tuple you should therefore provide a singleton tuple whose only
element is the tuple to be formatted.
-.. [#] These numbers are fairly arbitrary. They are intended to avoid printing endless
- strings of meaningless digits without hampering correct use and without having
- to know the exact precision of floating point values on a particular machine.
-
.. [#] The advantage of leaving the newline on is that returning an empty string is
then an unambiguous EOF indication. It is also possible (in cases where it
might matter, for example, if you want to make an exact copy of a file while