Title: bpo-28837: Fix lib2to3 handling of map/zip/filter by stuarteberg · Pull Request #24 · python/cpython · GitHub
Open Graph Title: bpo-28837: Fix lib2to3 handling of map/zip/filter by stuarteberg · Pull Request #24 · python/cpython
X Title: bpo-28837: Fix lib2to3 handling of map/zip/filter by stuarteberg · Pull Request #24 · python/cpython
Description: The 2to3 tool will automatically wrap calls to map, zip, and filter with list(): # Original: zip('abc', '123') # After 2to3: list(zip('abc', '123')) ...but the tool misses some cases, if the call is followed by a "trailer" such as [0]: # Skipped by 2to3: zip('abc', '123')[0] This PR augments the lib2to3 "fixers" for map, zip, and filter to correctly handle such cases. http://bugs.python.org/issue28837
Open Graph Description: The 2to3 tool will automatically wrap calls to map, zip, and filter with list(): # Original: zip('abc', '123') # After 2to3: list(zip('abc', '123')) ...but the tool...
X Description: The 2to3 tool will automatically wrap calls to map, zip, and filter with list(): # Original: zip('abc', '123') # After 2to3: list(zip('abc', ...
Opengraph URL: https://github.com/python/cpython/pull/24
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:39428cc1-0087-0cd9-8b41-61fcb09dc99a |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | CD48:254FE5:3D58D5:55CE82:696A0AA5 |
| html-safe-nonce | bf3be2ba1b5d7b3807c2954e1bb4936213bd9633d24e3267b4689c70ed305f61 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRDQ4OjI1NEZFNTozRDU4RDU6NTVDRTgyOjY5NkEwQUE1IiwidmlzaXRvcl9pZCI6IjY4NDY0ODM0NjI4MTA2MzQ5MTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c2bb46efbb6dbf4e9117b2e9cf349f112b0aba0a86baf2588632f4140278bff8 |
| hovercard-subject-tag | pull_request:105746921 |
| 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/24/files |
| twitter:image | https://avatars.githubusercontent.com/u/1655821?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1655821?s=400&v=4 |
| og:image:alt | The 2to3 tool will automatically wrap calls to map, zip, and filter with list(): # Original: zip('abc', '123') # After 2to3: list(zip('abc', '123')) ...but the tool... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 699227a00bbb7fe1eec276d2ae1c3a93068bc5ba483bd9dc4b2a27a8f4f2f595 |
| 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 | 7266b2d935baa1c6474b16dd9feaa5ca30607261 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width