]> granicus.if.org Git - python/commit
Issue #9011: Remove buggy and unnecessary ST->AST compilation code
authorMark Dickinson <dickinsm@gmail.com>
Thu, 17 Jun 2010 12:33:22 +0000 (12:33 +0000)
committerMark Dickinson <dickinsm@gmail.com>
Thu, 17 Jun 2010 12:33:22 +0000 (12:33 +0000)
commitd35a32e12eb7e3cf863cff80218e10c9bf3f351f
treecd4fd1e5290e5e24c488533464aee681c2d42083
parenta1b3740d042206efada2b8e1d97349c4d95e34e1
Issue #9011: Remove buggy and unnecessary ST->AST compilation code
dealing with unary minus applied to a constant.  The removed code was
mutating the ST, causing a second compilation to fail.  (The peephole
optimizer already takes care of optimizing this case, so there's no
lost optimization opportunity here.)
Lib/test/test_parser.py
Misc/NEWS
Python/ast.c