Title: bpo-32117: Allow tuple unpacking in return and yield statements by dacut · Pull Request #4509 · python/cpython · GitHub
Open Graph Title: bpo-32117: Allow tuple unpacking in return and yield statements by dacut · Pull Request #4509 · python/cpython
X Title: bpo-32117: Allow tuple unpacking in return and yield statements by dacut · Pull Request #4509 · python/cpython
Description: This is a fix for issue 32117: This stems from a query on StackOverflow. Specifically, the following syntax is allowed: def f(): rest = (4, 5, 6) t = 1, 2, 3, *rest While the following result in SyntaxError: def g(): rest = (4, 5, 6) return 1, 2, 3, *rest def h(): rest = (4, 5, 6) yield 1, 2, 3, *rest Looking at the original commit that enabled tuple unpacking in assignment statements: 4905e80 I don't believe this difference is intentional. https://bugs.python.org/issue32117
Open Graph Description: This is a fix for issue 32117: This stems from a query on StackOverflow. Specifically, the following syntax is allowed: def f(): rest = (4, 5, 6) t = 1, 2, 3, *rest While the following res...
X Description: This is a fix for issue 32117: This stems from a query on StackOverflow. Specifically, the following syntax is allowed: def f(): rest = (4, 5, 6) t = 1, 2, 3, *rest While the following res...
Opengraph URL: https://github.com/python/cpython/pull/4509
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:1ec88a9a-f0fb-adb4-bc88-2a91ab64bc12 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | B3F8:30F550:1051E8C:16BCD5C:696A3652 |
| html-safe-nonce | 8fa0534500711d5b7755bfada48d1cc040834f045e5dd7624b26270aded4faaa |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCM0Y4OjMwRjU1MDoxMDUxRThDOjE2QkNENUM6Njk2QTM2NTIiLCJ2aXNpdG9yX2lkIjoiNjI3MjY1Nzc4MDMxNzUwMTAxMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 51a7896d8b97557f71e7635295995104131d107bdb088a14bd59699ab6a3a68b |
| hovercard-subject-tag | pull_request:154276012 |
| 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/4509/files |
| twitter:image | https://avatars.githubusercontent.com/u/1291220?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1291220?s=400&v=4 |
| og:image:alt | This is a fix for issue 32117: This stems from a query on StackOverflow. Specifically, the following syntax is allowed: def f(): rest = (4, 5, 6) t = 1, 2, 3, *rest While the following res... |
| 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