]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
More unparse.py fixes:
authorMark Dickinson <dickinsm@gmail.com>
Tue, 29 Jun 2010 10:01:48 +0000 (10:01 +0000)
committerMark Dickinson <dickinsm@gmail.com>
Tue, 29 Jun 2010 10:01:48 +0000 (10:01 +0000)
commit8042e2819227af0653f4e5b172a3bd372dde4a92
tree368d38189c1e254883be9bd3bb4379f95785369d
parent3eb0290346199a850bc0b001c3e15ea75fdfff8f
More unparse.py fixes:

 - parenthesize lambdas, to avoid turning (lambda : int)() into lambda: int()
 - unparse an infinite float literals in the AST as an overflowing finite value

unparse.py now successfully round-trips on all valid Lib/*.py and Lib/test/*.py files.
Demo/parser/test_unparse.py
Demo/parser/unparse.py