Rather than introduce new logic, took the approach of making the message
itself more general.
}
if (assigning > OP_APPLY) {
com_error(c, PyExc_SyntaxError,
- "augmented assign to tuple literal not possible");
+ "augmented assign to tuple literal or generator expression not possible");
return;
}
break;
}
if (assigning > OP_APPLY) {
com_error(c, PyExc_SyntaxError,
- "augmented assign to list literal not possible");
+ "augmented assign to list literal or comprehension not possible");
return;
}
if (NCH(n) > 1