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 eltoder
Recipients Arfrever, eltoder, jdharper, mark.dickinson, pitrou, r.david.murray, rhettinger
Date 2011-03-10.21:17:49
SpamBayes Score 0.00017572996
Marked as misclassified No
Message-id <1299791872.78.0.228620664102.issue11244@psf.upfronthosting.co.za>
In-reply-to
Content
As discussed on the list, peephole refuses to fold -0. The reasons for this are unclear. Folding was disabled with this commit:
http://hg.python.org/cpython/diff/660419bdb4ae/Python/compile.c

Here's a trivial patch to enable the folding again, along with a test case. make test passes with the patch.
The change is independent from Antoine's patches.
History
Date User Action Args
2011-03-10 21:17:52eltodersetrecipients: + eltoder, rhettinger, mark.dickinson, pitrou, Arfrever, r.david.murray, jdharper
2011-03-10 21:17:52eltodersetmessageid: <1299791872.78.0.228620664102.issue11244@psf.upfronthosting.co.za>
2011-03-10 21:17:50eltoderlinkissue11244 messages
2011-03-10 21:17:50eltodercreate