Updated PEP 754 to mention the new Python 2.6 features.

This commit is contained in:
Christian Heimes 2008-01-18 08:36:51 +00:00
parent 5c09436293
commit 390c64f4ad
1 changed files with 18 additions and 0 deletions

View File

@ -17,6 +17,24 @@ Rejection Notice
This PEP has been rejected. After sitting open for four years, it has
failed to generate sufficient community interest.
Several ideas of this PEP were implemented for Python 2.6. ``float('inf')``
and ``repr(float('inf'))`` are now guaranteed to work on every supported
platform with IEEE 754 semantics. However the ``eval(repr(float('inf')))``
roundtrip is still not supported unless you define inf and nan yourself::
>>> inf = float('inf')
>>> inf, 1E400
(inf, inf)
>>> neginf = float('-inf')
>>> neginf, -1E400
(-inf, -inf)
>>> nan = float('nan')
>>> nan, inf * 0.
(nan, nan)
The math and the sys module also have gained additional features,
``sys.float_info``, ``math.isinf``, ``math.isnan``, ``math.copysign``.
Abstract
========