diff options
author | Lysandros Nikolaou <lisandrosnik@gmail.com> | 2020-05-22 00:56:52 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-22 00:56:52 (GMT) |
commit | ae145833025b0156ee2a28219e3370f3b27b2a36 (patch) | |
tree | e8898f0408e8de2e7116dd7cef9697b56b04f2e6 /Tools | |
parent | 7864f11cdf12807555d62c7a132c191eb41ecc02 (diff) | |
download | cpython-ae145833025b0156ee2a28219e3370f3b27b2a36.zip cpython-ae145833025b0156ee2a28219e3370f3b27b2a36.tar.gz cpython-ae145833025b0156ee2a28219e3370f3b27b2a36.tar.bz2 |
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.
Diffstat (limited to 'Tools')
0 files changed, 0 insertions, 0 deletions