Title: bpo-38641: Add support of starred expressions in return/yield to lib2to3 by vemel · Pull Request #16994 · python/cpython · GitHub
Open Graph Title: bpo-38641: Add support of starred expressions in return/yield to lib2to3 by vemel · Pull Request #16994 · python/cpython
X Title: bpo-38641: Add support of starred expressions in return/yield to lib2to3 by vemel · Pull Request #16994 · python/cpython
Description: Goal bpo-32117 is fixed, but unfortunately lib2to3 still does not support unpacking in return and yield without parentheses. def test(): my_list = ["value2", "value3"] yield "value1", *my_list return "value1", *my_list Changes Use testlist_star_expr in return_stmt Use testlist_star_expr in yield_arg Summary This is a backwards compatible change, because testlist_star_expr supports test as well like testlist does. https://bugs.python.org/issue38641
Open Graph Description: Goal bpo-32117 is fixed, but unfortunately lib2to3 still does not support unpacking in return and yield without parentheses. def test(): my_list = ["value2", "value3"] y...
X Description: Goal bpo-32117 is fixed, but unfortunately lib2to3 still does not support unpacking in return and yield without parentheses. def test(): my_list = ["value2", "value3&...
Opengraph URL: https://github.com/python/cpython/pull/16994
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:82819884-513d-a78a-ccb8-78faa3fc5a3f |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A892:28AE23:17B9D28:20A91FA:696AAA71 |
| html-safe-nonce | b6ca3f926b775111ed9ec7efe2d76c3b74531142b4c42038ee9407c9ecc021f7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBODkyOjI4QUUyMzoxN0I5RDI4OjIwQTkxRkE6Njk2QUFBNzEiLCJ2aXNpdG9yX2lkIjoiNjU0ODc3NjQ0MTkyMTMxNjk3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 577498d760eef8ecb3253dfd2a7c49d84c1e8776873720a261a04be279a08853 |
| hovercard-subject-tag | pull_request:334238845 |
| 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/16994/files |
| twitter:image | https://avatars.githubusercontent.com/u/204493?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/204493?s=400&v=4 |
| og:image:alt | Goal bpo-32117 is fixed, but unfortunately lib2to3 still does not support unpacking in return and yield without parentheses. def test(): my_list = ["value2", "value3"] y... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3eaf9b8cf1badcd7041a8ad480b9d9b28bea0ef1cc821ca9ff20f2cc7f4fe4b9 |
| 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 | dd9a979046e6382bd084e2bd873bf65f797125ff |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width