This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author nnorwitz
Recipients
Date 2007-06-01.05:49:52
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
This is a regression from 2.4.  This seems to always have been undefined behaviour.  It looks like it was the result of the compiler changes (code is the same in both versions, but co_consts is diff):

Python 2.4.4c1 (#2, Oct 11 2006, 20:00:03) 
>>> def r(n):
...   if n == -0.0: n = 0.0
...   return n
... 
>>> r.func_code.co_consts
(None, 0.0)

Python 2.6a0 (trunk, May 30 2007, 21:02:18) 
>>> def r(n):
...  if n == -0.0: n = 0.0
...  return n
... 
>>> r.func_code.co_consts
(None, -0.0)
History
Date User Action Args
2007-08-23 14:54:21adminlinkissue1729014 messages
2007-08-23 14:54:21admincreate