mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
SF bug #644345, Poor error message for augmented assign
Update error message. Hopefully this is clearer to some people.
This commit is contained in:
parent
8891021229
commit
a1d654e13a
1 changed files with 2 additions and 2 deletions
|
@ -2778,7 +2778,7 @@ com_assign(struct compiling *c, node *n, int assigning, node *augn)
|
||||||
}
|
}
|
||||||
if (assigning > OP_APPLY) {
|
if (assigning > OP_APPLY) {
|
||||||
com_error(c, PyExc_SyntaxError,
|
com_error(c, PyExc_SyntaxError,
|
||||||
"augmented assign to tuple not possible");
|
"augmented assign to tuple literal not possible");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -2791,7 +2791,7 @@ com_assign(struct compiling *c, node *n, int assigning, node *augn)
|
||||||
}
|
}
|
||||||
if (assigning > OP_APPLY) {
|
if (assigning > OP_APPLY) {
|
||||||
com_error(c, PyExc_SyntaxError,
|
com_error(c, PyExc_SyntaxError,
|
||||||
"augmented assign to list not possible");
|
"augmented assign to list literal not possible");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (NCH(n) > 1
|
if (NCH(n) > 1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue