cpython/Lib/compiler
Jeremy Hylton 3ec7e2c4be the previous quick hack to fix def foo((x,y)) failed on some cases
(big surprise).  new solution is a little less hackish.

Code gen adds a TupleArg instance in the argument slot. The tuple arg
includes a copy of the names that it is responsble for binding.  The
PyAssembler uses this information to calculate the correct argcount.

all fix this wacky case: del (a, ((b,), c)), d
which is the same as: del a, b, c, d
(Can't wait for Guido to tell me why.)

solution uses findOp which walks a tree to find out whether it
contains OP_ASSIGN or OP_DELETE or ...
2000-02-17 22:09:35 +00:00
..
__init__.py make p2c a package 2000-02-04 00:25:34 +00:00
ast.py add varargs and kwargs flags to Lambda nodes 2000-02-17 22:06:20 +00:00
consts.py constants from transformer 2000-02-08 18:57:51 +00:00
misc.py add flatten helper function 2000-02-16 00:49:47 +00:00
pyassem.py the previous quick hack to fix def foo((x,y)) failed on some cases 2000-02-17 22:09:35 +00:00
pycodegen.py the previous quick hack to fix def foo((x,y)) failed on some cases 2000-02-17 22:09:35 +00:00
transformer.py more robust assignment of lineno for keyword args 2000-02-16 00:51:37 +00:00