Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8ffc141

Browse files
committed
Fix two erroneous error messages.
1 parent 975e725 commit 8ffc141

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Python/compile.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3203,13 +3203,13 @@ com_assign(struct compiling *c, node *n, int assigning, node *augn)
32033203
case testlist_gexp:
32043204
if (NCH(n) > 1) {
32053205
if (TYPE(CHILD(n, 1)) == gen_for) {
3206-
com_error(c, PyExc_SystemError,
3206+
com_error(c, PyExc_SyntaxError,
32073207
"assign to generator expression not possible");
32083208
return;
32093209
}
32103210
if (assigning > OP_APPLY) {
32113211
com_error(c, PyExc_SyntaxError,
3212-
"augmented assign to tuple not possible");
3212+
"augmented assign to generator expression not possible");
32133213
return;
32143214
}
32153215
com_assign_sequence(c, n, assigning);

0 commit comments

Comments
 (0)