From: Guido van Rossum Date: Thu, 10 Jul 1997 01:06:53 +0000 (+0000) Subject: Fix bug reported by Just: anonymous arguments used for tuples should X-Git-Tag: v1.5a3~324 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=db9e20f41802c104d688002af22a090b60a656b4;p=python 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. --- diff --git a/Python/compile.c b/Python/compile.c index 36304e38e7..5eb52d5f81 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);