Title: gh-104374: don't inline comprehensions in non-function scopes by carljm · Pull Request #104519 · python/cpython · GitHub
Open Graph Title: gh-104374: don't inline comprehensions in non-function scopes by carljm · Pull Request #104519 · python/cpython
X Title: gh-104374: don't inline comprehensions in non-function scopes by carljm · Pull Request #104519 · python/cpython
Description: This PR updates and adds comprehension tests to mandate the same scoping and name-visibility rules as in Python 3.11, including in class scopes. These are the changes in Lib/tests/test_listcomps.py...
Open Graph Description: This PR updates and adds comprehension tests to mandate the same scoping and name-visibility rules as in Python 3.11, including in class scopes. These are the changes in Lib/tests/test_listcomps.py...
X Description: This PR updates and adds comprehension tests to mandate the same scoping and name-visibility rules as in Python 3.11, including in class scopes. These are the changes in Lib/tests/test_listcomps.py...
Opengraph URL: https://github.com/python/cpython/pull/104519
X: @github
Domain: github.com
| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:4e0b4ed0-b60b-d034-6a1d-52542a94465c |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E1E2:1301FE:103532B:15A4A1F:69699192 |
| html-safe-nonce | 512fde8574934cfe13dc0d8207448aeb73a2c5b3d8d19c7ab718c3e03718e8da |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMUUyOjEzMDFGRToxMDM1MzJCOjE1QTRBMUY6Njk2OTkxOTIiLCJ2aXNpdG9yX2lkIjoiNDY0MTgxNDkyODAxNDU0NTI5OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 4771e17ac3f45022ae7badb0a063e1a2a2fb4e4d31a2fdb918abdb5c6eb3be39 |
| hovercard-subject-tag | pull_request:1351628641 |
| 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/_view_fragments/voltron/pull_requests/show/python/cpython/104519/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/9f4c6c7ff6642ae5f002f7c099eabb0853783775a93c19741f56068260d4028a/python/cpython/pull/104519 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9f4c6c7ff6642ae5f002f7c099eabb0853783775a93c19741f56068260d4028a/python/cpython/pull/104519 |
| og:image:alt | This PR updates and adds comprehension tests to mandate the same scoping and name-visibility rules as in Python 3.11, including in class scopes. These are the changes in Lib/tests/test_listcomps.py... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | carljm |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3542e147982176a7ebaa23dfb559c8af16f721c03ec560c68c56b64a0f35e751 |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | af80af7cc9e3de9c336f18b208a600950a3c187c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width