]> granicus.if.org Git - python/commit
Two more patches by Tony Lownds (SF# 1607548).
authorGuido van Rossum <guido@python.org>
Mon, 26 Feb 2007 21:23:50 +0000 (21:23 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 26 Feb 2007 21:23:50 +0000 (21:23 +0000)
commit0240b92a6c3a17fac38d93ee80fc8e8523388786
tree8434f85d5b00ca30cc2fad24082ba454a43a4409
parentf74225d63b84a4d3b508fd5657cfe2596633876a
Two more patches by Tony Lownds (SF# 1607548).

(1)
Combines the code paths for MAKE_FUNCTION and MAKE_CLOSURE.
Fixes a crash where functions with closures and either annotations or
keyword-only arguments result in MAKE_CLOSURE, but only
MAKE_FUNCTION has the code to handle annotations or keyword-only
arguments.
Includes enough tests to trigger the bug.

(2)
Change peepholer to not bail in the presence of EXTENDED_ARG +
MAKE_FUNCTION.
Enforce the natural 16-bit limit of annotations in compile.c.

Also update Misc/NEWS with the "input = raw_input" change.
Lib/test/test_compile.py
Lib/test/test_grammar.py
Lib/test/test_peepholer.py
Misc/NEWS
Python/ceval.c
Python/compile.c
Python/peephole.c