summaryrefslogtreecommitdiffstats
path: root/Python/compile.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-07-10 01:06:53 (GMT)
committerGuido van Rossum <guido@python.org>1997-07-10 01:06:53 (GMT)
commitdb9e20f41802c104d688002af22a090b60a656b4 (patch)
treea481a930c09abf5efc11ae7c740c5b19e2cef8e2 /Python/compile.c
parent475d51d7b249a87a2e636ecae25456c30a7b57b3 (diff)
downloadcpython-db9e20f41802c104d688002af22a090b60a656b4.zip
cpython-db9e20f41802c104d688002af22a090b60a656b4.tar.gz
cpython-db9e20f41802c104d688002af22a090b60a656b4.tar.bz2
Fix bug reported by Just: anonymous arguments used for tuples should
have a unique name, otherwise they get squished by locals2fast (or fast2locals, I dunno) when the debugger is invoked before they have been transferred to real locals.
Diffstat (limited to 'Python/compile.c')
-rw-r--r--Python/compile.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Python/compile.c b/Python/compile.c
index 36304e3..5eb52d5 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -2995,6 +2995,7 @@ com_arglist(c, n)
{
int nch, i;
int complex = 0;
+ char nbuf[10];
REQ(n, varargslist);
/* varargslist:
(fpdef ['=' test] ',')* (fpdef ['=' test] | '*' .....) */
@@ -3011,7 +3012,8 @@ com_arglist(c, n)
if (TYPE(fp) == NAME)
name = STR(fp);
else {
- name = "";
+ name = nbuf;
+ sprintf(nbuf, ".%d", i);
complex = 1;
}
com_newlocal(c, name);