Kaydet (Commit) db9e20f4 authored tarafından Guido van Rossum's avatar Guido van Rossum

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.
üst 475d51d7
...@@ -2995,6 +2995,7 @@ com_arglist(c, n) ...@@ -2995,6 +2995,7 @@ com_arglist(c, n)
{ {
int nch, i; int nch, i;
int complex = 0; int complex = 0;
char nbuf[10];
REQ(n, varargslist); REQ(n, varargslist);
/* varargslist: /* varargslist:
(fpdef ['=' test] ',')* (fpdef ['=' test] | '*' .....) */ (fpdef ['=' test] ',')* (fpdef ['=' test] | '*' .....) */
...@@ -3011,7 +3012,8 @@ com_arglist(c, n) ...@@ -3011,7 +3012,8 @@ com_arglist(c, n)
if (TYPE(fp) == NAME) if (TYPE(fp) == NAME)
name = STR(fp); name = STR(fp);
else { else {
name = ""; name = nbuf;
sprintf(nbuf, ".%d", i);
complex = 1; complex = 1;
} }
com_newlocal(c, name); com_newlocal(c, name);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment