Title: bpo-40334: Produce better error messages for non-parenthesized genexps by lysnikolaou · Pull Request #20153 · python/cpython · GitHub
Open Graph Title: bpo-40334: Produce better error messages for non-parenthesized genexps by lysnikolaou · Pull Request #20153 · python/cpython
X Title: bpo-40334: Produce better error messages for non-parenthesized genexps by lysnikolaou · Pull Request #20153 · python/cpython
Description: The error message, generated for 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. Now, even on inputs like f(a, b, c for c in d, e), the correct error message gets produced. PS Last one with this bpo number. Promise! https://bugs.python.org/issue40334
Open Graph Description: The error message, generated for non-parenthesized generator expression in function calls, was still the generic invalid syntax, when the generator expression wasn't appearing as the first argu...
X Description: The error message, generated for non-parenthesized generator expression in function calls, was still the generic invalid syntax, when the generator expression wasn't appearing as the first ...
Opengraph URL: https://github.com/python/cpython/pull/20153
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:4e15040c-e0de-2ef9-f701-a48f64edf12a |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | C7E0:2B81A2:1235040:1931DBE:6969FF12 |
| html-safe-nonce | 5028a8f635d65277fd1a7ab3121b2ad442a6a20ff51925066d2164381ba5efac |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDN0UwOjJCODFBMjoxMjM1MDQwOjE5MzFEQkU6Njk2OUZGMTIiLCJ2aXNpdG9yX2lkIjoiNDUwODg4NjI3NzM1MTAxMjAyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | b7b816b8f7848aae48ba7ee5eda78e8bea9c486f7d96f1865730536ec72d2edc |
| hovercard-subject-tag | pull_request:419129479 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,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/20153/checks |
| twitter:image | https://avatars.githubusercontent.com/u/20306270?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/20306270?s=400&v=4 |
| og:image:alt | The error message, generated for non-parenthesized generator expression in function calls, was still the generic invalid syntax, when the generator expression wasn't appearing as the first argu... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 578c119ff0247c8b2f2491fbf4fc0395cdf909d4df66598cebdc96ddfc4418dc |
| turbo-cache-control | no-preview |
| 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 full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 671c2f67171dbced24284331f3133a613d08c366 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width