Kaydet (Commit) c7ff2168 authored tarafından Mark Dickinson's avatar Mark Dickinson

Merged revisions 84065 via svnmerge from

svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r84065 | mark.dickinson | 2010-08-15 10:43:29 +0100 (Sun, 15 Aug 2010) | 1 line

  Clarify whatsnew entry for short float repr:  roundtripping is not a new feature in 2.7.
........
üst e23f102c
...@@ -141,10 +141,12 @@ A partial list of 3.1 features that were backported to 2.7: ...@@ -141,10 +141,12 @@ A partial list of 3.1 features that were backported to 2.7:
* The :class:`memoryview` object. * The :class:`memoryview` object.
* A small subset of the :mod:`importlib` module, * A small subset of the :mod:`importlib` module,
`described below <#importlib-section>`__. `described below <#importlib-section>`__.
* Float-to-string and string-to-float conversions now round their * The :func:`repr` of a float ``x`` is shorter in many cases: it's now
results more correctly, and :func:`repr` of a floating-point based on the shortest decimal string that's guaranteed to round back
number *x* returns a result that's guaranteed to round back to the to ``x``. As in previous versions of Python, it's guaranteed that
same number when converted back to a float. ``float(repr(x))`` recovers ``x``.
* Float-to-string and string-to-float conversions are correctly rounded.
The :func:`round` function is also now correctly rounded.
* The :ctype:`PyCapsule` type, used to provide a C API for extension modules. * The :ctype:`PyCapsule` type, used to provide a C API for extension modules.
* The :cfunc:`PyLong_AsLongAndOverflow` C API function. * The :cfunc:`PyLong_AsLongAndOverflow` C API function.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment