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/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:df9caffd-ad12-2503-db32-813a411c239f |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | A848:356E3F:12EA1A:1AA752:696A39D3 |
| html-safe-nonce | 2095bd2dd811a435c456f1297a73b45928b0d5350253c3d726621593c8206616 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBODQ4OjM1NkUzRjoxMkVBMUE6MUFBNzUyOjY5NkEzOUQzIiwidmlzaXRvcl9pZCI6IjI1NDY0ODMyNzY4ODg1NTM5MzkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 65c36f399dd20f46ed3c5d24589c298b39f57e6e1dfb9d196f5325cc6515344c |
| hovercard-subject-tag | pull_request:334238845 |
| 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/16994/checks |
| 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 | 321736bfdb3f591415ae895a0459bec204b26a76caf47ba5c980634cfacc4538 |
| 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 | 7a9163cefd1ea4bd06f8eb7c082f43e4e53f626f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width