summaryrefslogtreecommitdiffstats
path: root/Lib/test/ieee754.txt
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-12-30 16:22:49 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2009-12-30 16:22:49 (GMT)
commit9ab44b509a935011beb8e9108a2271ee728e8ad4 (patch)
treedb93eb3fa764bf5a6154026ed3a4c8109db37216 /Lib/test/ieee754.txt
parentfaa6b7f421ad1491ecbf4807a781202c155568e3 (diff)
downloadcpython-9ab44b509a935011beb8e9108a2271ee728e8ad4.zip
cpython-9ab44b509a935011beb8e9108a2271ee728e8ad4.tar.gz
cpython-9ab44b509a935011beb8e9108a2271ee728e8ad4.tar.bz2
Merged revisions 77139-77140 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r77139 | mark.dickinson | 2009-12-30 12:12:23 +0000 (Wed, 30 Dec 2009) | 3 lines Issue #7534: Fix handling of nans, infinities, and negative zero in ** operator, on IEEE 754 platforms. Thanks Marcos Donolo for original patch. ........ r77140 | mark.dickinson | 2009-12-30 12:22:49 +0000 (Wed, 30 Dec 2009) | 1 line Add Marcos Donolo for work on issue 7534 patch. ........
Diffstat (limited to 'Lib/test/ieee754.txt')
-rw-r--r--Lib/test/ieee754.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/test/ieee754.txt b/Lib/test/ieee754.txt
index 5a41c8f..89bb0c5 100644
--- a/Lib/test/ieee754.txt
+++ b/Lib/test/ieee754.txt
@@ -72,7 +72,7 @@ False
>>> NAN >= 0
False
-All operations involving a NaN return a NaN except for the power of *0* and *1*.
+All operations involving a NaN return a NaN except for nan**0 and 1**nan.
>>> 1 + NAN
nan
>>> 1 * NAN
@@ -81,8 +81,10 @@ nan
nan
>>> 1 ** NAN
1.0
+>>> NAN ** 0
+1.0
>>> 0 ** NAN
-0.0
+nan
>>> (1.0 + FI.epsilon) * NAN
nan