Title: [3.9] bpo-40334: Produce better error messages for non-parenthesized genexps (GH-20153) by miss-islington · Pull Request #20307 · python/cpython · GitHub
Open Graph Title: [3.9] bpo-40334: Produce better error messages for non-parenthesized genexps (GH-20153) by miss-islington · Pull Request #20307 · python/cpython
X Title: [3.9] bpo-40334: Produce better error messages for non-parenthesized genexps (GH-20153) by miss-islington · Pull Request #20307 · python/cpython
Description: 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. (cherry picked from commit ae14583) Co-authored-by: Lysandros Nikolaou lisandrosnik@gmail.com https://bugs.python.org/issue40334
Open Graph Description: 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 ar...
X Description: 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 firs...
Opengraph URL: https://github.com/python/cpython/pull/20307
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:4bad6597-f100-a76b-0096-15d03a6af316 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9C68:28C591:1373D39:1B334DF:696A3460 |
| html-safe-nonce | 397544f5640fc3ca42cea9b056954432e83ce42f40ae5f34c4f8cec7ed0da051 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QzY4OjI4QzU5MToxMzczRDM5OjFCMzM0REY6Njk2QTM0NjAiLCJ2aXNpdG9yX2lkIjoiMjkwNDcyNjA0Mzc4MTM3OTE2OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d165bb48ec165c816370105e600386ac10c968a90c1352c2b8d62cce2d057025 |
| hovercard-subject-tag | pull_request:421658763 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/20307/files |
| twitter:image | https://avatars.githubusercontent.com/u/31488909?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/31488909?s=400&v=4 |
| og:image:alt | 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 ar... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 321736bfdb3f591415ae895a0459bec204b26a76caf47ba5c980634cfacc4538 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7a9163cefd1ea4bd06f8eb7c082f43e4e53f626f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width