commit | 623b979553ae03ba5b2d5f60a668fbe288b2112d | [log] [tgz] |
---|---|---|
author | Mark Dickinson <dickinsm@gmail.com> | Mon Jun 28 19:31:41 2010 +0000 |
committer | Mark Dickinson <dickinsm@gmail.com> | Mon Jun 28 19:31:41 2010 +0000 |
tree | 83dae5c3048678713a0da15537a88419fc84827c | |
parent | 8c996ef45859108faf4fec8773f7810eb5782282 [diff] |
Fix some shallow bugs in Demo/parser/unparse.py, and add tests: - insert commas between entries in del statement - left and right shifts were represented as >> and << (respectively); reverse - unindent properly after for: else: or while: else: - add parens around the result of an unary operation - add parens around negative numbers, to avoid turning (-1)**2 into -1**2.