Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
8858d2cb
Commit
8858d2cb
authored
Aug 15, 2010
by
Mark Dickinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clarify whatsnew entry for short float repr: roundtripping is not a new feature in 2.7.
parent
e039ffe4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
Doc/whatsnew/2.7.rst
Doc/whatsnew/2.7.rst
+6
-4
No files found.
Doc/whatsnew/2.7.rst
View file @
8858d2cb
...
...
@@ -143,10 +143,12 @@ A partial list of 3.1 features that were backported to 2.7:
* The :class:`memoryview` object.
* A small subset of the :mod:`importlib` module,
`described below <#importlib-section>`__.
* Float-to-string and string-to-float conversions now round their
results more correctly, and :func:`repr` of a floating-point
number *x* returns a result that's guaranteed to round back to the
same number when converted back to a float.
* The :func:`repr` of a float ``x`` is shorter in many cases: it's now
based on the shortest decimal string that's guaranteed to round back
to ``x``. As in previous versions of Python, it's guaranteed that
``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 :cfunc:`PyLong_AsLongAndOverflow` C API function.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment