bpo-40334: Produce better error messages for non-parenthesized genexps (GH-20153)
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.
L
Lysandros Nikolaou committed
ae145833025b0156ee2a28219e3370f3b27b2a36
Parent: 7864f11
Committed by GitHub <noreply@github.com>
on 5/22/2020, 12:56:52 AM