Mercurial > cpython-lru_cache-weakref
diff Python/compile.c @ 5754:9ed26afeeaa5 legacy-trunk
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.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Thu, 10 Jul 1997 01:06:53 +0000 |
| parents | 10e9cfa010f0 |
| children | ba49a6ef7214 |
line wrap: on
line diff
--- a/Python/compile.c Tue Jun 24 22:02:54 1997 +0000 +++ b/Python/compile.c Thu Jul 10 01:06:53 1997 +0000 @@ -2995,6 +2995,7 @@ { int nch, i; int complex = 0; + char nbuf[10]; REQ(n, varargslist); /* varargslist: (fpdef ['=' test] ',')* (fpdef ['=' test] | '*' .....) */ @@ -3011,7 +3012,8 @@ if (TYPE(fp) == NAME) name = STR(fp); else { - name = ""; + name = nbuf; + sprintf(nbuf, ".%d", i); complex = 1; } com_newlocal(c, name);
