[Patches] [ python-Patches-1678668 ] fix a bug mixing up 0.0 and-0.0

SourceForge.net noreply at sourceforge.net
Mon Mar 12 02:55:43 CET 2007


Patches item #1678668, was opened at 2007-03-11 18:42
Message generated for change (Comment added) made by aleax
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1678668&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Parser/Compiler
Group: Python 2.6
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Alex Martelli (aleax)
Assigned to: Nobody/Anonymous (nobody)
Summary: fix a bug mixing up 0.0 and-0.0

Initial Comment:
When 0.0 and -0.0 occur in the same compilation unit (e.g. function), the first one to occur gets used in lieu of all occurrences of the other. So, I've added a unittest to confirm this bug, and slightly tweaked an optimization performed in ast.c (_exactly_ along the lines of the similar tweak that's already there in the similar optimization performed in peephole.c) to remove the bug (which was not in the latest released 2.4 but keeps resurfacing -- hopefully no longer, w/the new unittest).

----------------------------------------------------------------------

>Comment By: Alex Martelli (aleax)
Date: 2007-03-11 18:55

Message:
Logged In: YES 
user_id=60314
Originator: YES

Forgot to mention that this patch fixes bug 1678380

Alex


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1678668&group_id=5470


More information about the Patches mailing list