mirror of
https://github.com/python/cpython.git
synced 2025-11-03 11:23:31 +00:00
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. |
||
|---|---|---|
| .. | ||
| Grammar | ||
| python.gram | ||
| Tokens | ||