mirror of
https://github.com/python/cpython.git
synced 2025-09-10 18:58:35 +00:00
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.
This commit is contained in:
parent
475d51d7b2
commit
db9e20f418
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||||
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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue