]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
x**2 should about equal x*x (including for a float x such that the result is
authorAlex Martelli <aleaxit@gmail.com>
Wed, 23 Aug 2006 20:42:02 +0000 (20:42 +0000)
committerAlex Martelli <aleaxit@gmail.com>
Wed, 23 Aug 2006 20:42:02 +0000 (20:42 +0000)
commit20362a820bd09617a33721191aa966416b03427c
treed23425e8b6a7c9d56c9fe9500bf887c5007a14ae
parent29bef0bbaae7f670e65c81173b8c1afc148aa248
x**2 should about equal x*x (including for a float x such that the result is
inf) but didn't; added a test to test_float to verify that, and ignored the
ERANGE value for errno in the pow operation to make the new test pass (with
help from Marilyn Davis at the Google Python Sprint -- thanks!).
Lib/test/test_float.py
Objects/floatobject.c