diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2000-02-17 22:09:35 +0000 |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2000-02-17 22:09:35 +0000 |
commit | 12613c95ea0cf6e0788aa60af36966b9272539f1 (patch) | |
tree | 7c843e848e16d0a8c73cd891cdbc5eccaaefb6bc /Python/errors.c | |
parent | d5b868758fcb11ff87463dae4fe4e3654f00a348 (diff) | |
download | cpython-12613c95ea0cf6e0788aa60af36966b9272539f1.tar.gz |
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 ...
Diffstat (limited to 'Python/errors.c')
0 files changed, 0 insertions, 0 deletions