]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Fix compile.c so that it records 0.0 and -0.0 as separate constants in a code
authorAlex Martelli <aleaxit@gmail.com>
Wed, 22 Aug 2007 21:14:17 +0000 (21:14 +0000)
committerAlex Martelli <aleaxit@gmail.com>
Wed, 22 Aug 2007 21:14:17 +0000 (21:14 +0000)
commitd8672aa8a4c925c69cac51561c68a9820cf97124
tree8b9b8a463b69f80c2b9e38805d0686cb7e120692
parent89e975fc74d794c2087244d6f684477b334233c3
Fix compile.c so that it records 0.0 and -0.0 as separate constants in a code
object's co_consts tuple; add a test to show that the previous behavior (where
these two constants were "collapsed" into one) causes serious malfunctioning.
Lib/test/test_float.py
Python/compile.c