mirror of https://github.com/python/cpython
ae14583302
The error message, generated for a non-parenthesized generator expression in function calls, was still the generic `invalid syntax`, when the generator expression wasn't appearing as the first argument in the call. With this patch, even on input like `f(a, b, c for c in d, e)`, the correct error message gets produced. |
||
---|---|---|
.. | ||
parse.c | ||
parse_string.c | ||
parse_string.h | ||
peg_api.c | ||
pegen.c | ||
pegen.h |