diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2008-06-24 11:08:58 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2008-06-24 11:08:58 (GMT) |
commit | c72b7879928156fe260e8d1511b047d0ec244f03 (patch) | |
tree | cf90caa3fb49b1ba3a5f66e6195ce9731bc937d1 /Doc | |
parent | 9ea1e36957bb5f890c56f0ffedfacd766699a436 (diff) | |
download | cpython-c72b7879928156fe260e8d1511b047d0ec244f03.zip cpython-c72b7879928156fe260e8d1511b047d0ec244f03.tar.gz cpython-c72b7879928156fe260e8d1511b047d0ec244f03.tar.bz2 |
Change description of float('nan') feature; NaNs don't care much about
signs, and float('nan'), float('+nan') and float('-nan') actually all
generate the exact same NaN value.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/whatsnew/2.6.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/whatsnew/2.6.rst b/Doc/whatsnew/2.6.rst index 6f1f157..3e6190c 100644 --- a/Doc/whatsnew/2.6.rst +++ b/Doc/whatsnew/2.6.rst @@ -1374,8 +1374,8 @@ Here are all of the changes that Python 2.6 makes to the core Python language. of the zero. (Fixed by Mark T. Dickinson; :issue:`1507`) * More floating-point features were also added. The :func:`float` function - will now turn the strings ``+nan`` and ``-nan`` into the corresponding - IEEE 754 Not A Number values, and ``+inf`` and ``-inf`` into + will now turn the string ``nan`` into an + IEEE 754 Not A Number value, and ``+inf`` and ``-inf`` into positive or negative infinity. This works on any platform with IEEE 754 semantics. (Contributed by Christian Heimes; :issue:`1635`.) |