[issue1678380] 0.0 and -0.0 identified, with surprising results

Mark Dickinson report at bugs.python.org
Mon Jan 21 22:58:41 CET 2008


Mark Dickinson added the comment:

This was fixed in the trunk in revision 57284.  I've backported the fix to Python 2.5.2 in revision 
60183.

Leaving this open because there's still a problem for complex numbers, though I guess this is less 
likely to bite people:

Python 2.6a0 (trunk:60158M, Jan 21 2008, 16:21:41) 
[GCC 4.0.1 (Apple Computer, Inc. build 5370)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> 0j
0j
>>> -0j
-0j
>>> [0j, -0j]
[0j, 0j]

_____________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1678380>
_____________________________________


More information about the Python-bugs-list mailing list