Title: bpo-34508: allow unparenthesized star-unpacking expressions in return statements by mdickinson · Pull Request #8942 · python/cpython · GitHub
Open Graph Title: bpo-34508: allow unparenthesized star-unpacking expressions in return statements by mdickinson · Pull Request #8942 · python/cpython
X Title: bpo-34508: allow unparenthesized star-unpacking expressions in return statements by mdickinson · Pull Request #8942 · python/cpython
Description: This PR makes the following (currently illegal) syntax legal: def f(): return *(1, 2), *(3, 4) This eliminates an inconsistency between the target of a return and the target of a simple assignment: the following syntax is already legal: def f(): x = *(1, 2), *(3, 4) return x https://bugs.python.org/issue34508
Open Graph Description: This PR makes the following (currently illegal) syntax legal: def f(): return *(1, 2), *(3, 4) This eliminates an inconsistency between the target of a return and the target of a simple assignm...
X Description: This PR makes the following (currently illegal) syntax legal: def f(): return *(1, 2), *(3, 4) This eliminates an inconsistency between the target of a return and the target of a simple assignm...
Opengraph URL: https://github.com/python/cpython/pull/8942
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:5eda2bcf-409b-436f-6a77-05150f6ed0f3 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 8F60:174FB1:2240501:2D3920E:696B0ED6 |
| html-safe-nonce | 717a45c7d03e52a67762bad110252ba1f600ffa14240162a5b34903ec386302a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RjYwOjE3NEZCMToyMjQwNTAxOjJEMzkyMEU6Njk2QjBFRDYiLCJ2aXNpdG9yX2lkIjoiNzQ1MTQ3NzY0OTk1NjQ3NDU4MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | cf5ab97c8ccd05403c9c63c1139b43dcea3533f5513875183134a4a9f30b6dfe |
| hovercard-subject-tag | pull_request:210958781 |
| 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/8942/files |
| twitter:image | https://avatars.githubusercontent.com/u/662003?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/662003?s=400&v=4 |
| og:image:alt | This PR makes the following (currently illegal) syntax legal: def f(): return *(1, 2), *(3, 4) This eliminates an inconsistency between the target of a return and the target of a simple assignm... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| 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 | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width