Updated PEP 754 to mention the new Python 2.6 features.
This commit is contained in:
parent
5c09436293
commit
390c64f4ad
18
pep-0754.txt
18
pep-0754.txt
|
@ -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
|
||||
========
|
||||
|
|
Loading…
Reference in New Issue