Patches item #1678668, was opened at 2007-03-12 02:42 Message generated for change (Comment added) made by loewis 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: Martin v. Löwis (loewis) Date: 2007-03-12 10:16 Message: Logged In: YES user_id=21627 Originator: NO I'm still doubtful whether this deserves fixing. However, if it does, it should produce different literals for +0j and -0j as well. ---------------------------------------------------------------------- Comment By: Mark Dickinson (marketdickinson) Date: 2007-03-12 05:05 Message: Logged In: YES user_id=703403 Originator: NO Works for me. Mark ---------------------------------------------------------------------- Comment By: Alex Martelli (aleax) Date: 2007-03-12 02: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 _______________________________________________ Patches mailing list Patches@python.org http://mail.python.org/mailman/listinfo/patches