Eugene Toder <elto...@gmail.com> added the comment: 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. ---------- nosy: +eltoder Added file: http://bugs.python.org/file21073/fold-0.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue11244> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com