| 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:d39890c0-f0d1-680a-8095-ab99dbaf4036 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 856C:4EC07:1C0525:27FBCF:6A560424 |
| html-safe-nonce | ed955a32b1f1469513a5886dc018bcb974f1d2e77a233ead434f4a9345539382 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NTZDOjRFQzA3OjFDMDUyNToyN0ZCQ0Y6NkE1NjA0MjQiLCJ2aXNpdG9yX2lkIjoiNDAyMjUxNjY0ODY1NzY4MzQ5MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | fe6cd53d8b62e9ca3ac88cfe0413d89f5a93bdbabc2d70bb2694d22b2f18c0ca |
| hovercard-subject-tag | pull_request:3630141928 |
| 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 | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/149408/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/afaac267e6b79903757020fe5694d05439ef4048994cd15b401361c5fb63bd97/python/cpython/pull/149408 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/afaac267e6b79903757020fe5694d05439ef4048994cd15b401361c5fb63bd97/python/cpython/pull/149408 |
| og:image:alt | Feel free to chime in with criticism. I'm not sure this is it yet, but take it in your own hands if you want.
Issue: Revamp sys.lazy_modules #148587 |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | johnslavik |
| hostname | github.com |
| expected-hostname | github.com |
| None | f4368738fc918fecd9b3958f6b49218bbe60d4185f38e72e3954e11f1ad0213a |
| turbo-cache-control | no-cache |
| 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 | ed27e29ef37c0e8f612ea3fed8118b955b8314e2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/149408#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F149408 |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub Copilot appDirect agents from issue to merge | https://github.com/features/ai/github-app |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| View all resources | https://github.com/resources |
| GitHub SponsorsFund open source developers | https://github.com/open-source/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/open-source/accelerator |
| GitHub Stars | https://stars.github.com |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F149408 |
|
Sign up
| https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython |
| Reload | https://github.com/python/cpython/pull/149408 |
| Reload | https://github.com/python/cpython/pull/149408 |
| Reload | https://github.com/python/cpython/pull/149408 |
| Please reload this page | https://github.com/python/cpython/pull/149408 |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/149408 |
|
Notifications
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Fork
35k
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Star
73.8k
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Code
| https://github.com/python/cpython |
|
Issues
5k+
| https://github.com/python/cpython/issues |
|
Pull requests
2.3k
| https://github.com/python/cpython/pulls |
|
Actions
| https://github.com/python/cpython/actions |
|
Projects
| https://github.com/python/cpython/projects |
|
Security and quality
0
| https://github.com/python/cpython/security |
|
Insights
| https://github.com/python/cpython/pulse |
|
Code
| https://github.com/python/cpython |
|
Issues
| https://github.com/python/cpython/issues |
|
Pull requests
| https://github.com/python/cpython/pulls |
|
Actions
| https://github.com/python/cpython/actions |
|
Projects
| https://github.com/python/cpython/projects |
|
Security and quality
| https://github.com/python/cpython/security |
|
Insights
| https://github.com/python/cpython/pulse |
| johnslavik | https://github.com/johnslavik |
| python:main | https://github.com/python/cpython/tree/main |
| johnslavik:gh-148587-revamp-sys-lazy-modules | https://github.com/johnslavik/cpython/tree/gh-148587-revamp-sys-lazy-modules |
| Conversation | https://github.com/python/cpython/pull/149408 |
| Commits14 (14) | https://github.com/python/cpython/pull/149408/commits |
| Checks | https://github.com/python/cpython/pull/149408/checks |
| Files changed | https://github.com/python/cpython/pull/149408/files |
| gh-148587: Make sys.lazy_modules immutable | https://github.com/python/cpython/pull/149408#top |
| johnslavik | https://github.com/johnslavik |
| python:main | https://github.com/python/cpython/tree/main |
| johnslavik:gh-148587-revamp-sys-lazy-modules | https://github.com/johnslavik/cpython/tree/gh-148587-revamp-sys-lazy-modules |
|
| https://github.com/johnslavik |
| johnslavik | https://github.com/johnslavik |
| May 5, 2026 | https://github.com/python/cpython/pull/149408#issue-4383712087 |
| Please reload this page | https://github.com/python/cpython/pull/149408 |
| Revamp sys.lazy_modules #148587 | https://github.com/python/cpython/issues/148587 |
| Please reload this page | https://github.com/python/cpython/pull/149408 |
| johnslavik | https://github.com/johnslavik |
| April 26, 2026 23:43 | https://github.com/python/cpython/pull/149408#commits-pushed-351473b |
|
| https://github.com/johnslavik |
| pythongh-148587 | https://github.com/python/cpython/issues/148587 |
| : Make sys.lazy_modules an immutable frozendict snapshot | https://github.com/python/cpython/pull/149408/commits/351473b6a188a71acd0524b00f19bb2577e6b1c1 |
| 351473b | https://github.com/python/cpython/pull/149408/commits/351473b6a188a71acd0524b00f19bb2577e6b1c1 |
|
| https://github.com/johnslavik |
| pythongh-148587 | https://github.com/python/cpython/issues/148587 |
| : Expose live lazy import registry as sys._lazy_modules | https://github.com/python/cpython/pull/149408/commits/083bbe99cf66881ca407bdf5e81b4f4c569e2521 |
| 083bbe9 | https://github.com/python/cpython/pull/149408/commits/083bbe99cf66881ca407bdf5e81b4f4c569e2521 |
|
| https://github.com/johnslavik |
| pythongh-148587 | https://github.com/python/cpython/issues/148587 |
| : Address review feedback on sys.lazy_modules | https://github.com/python/cpython/pull/149408/commits/eac60ede1e87f8eab8008a2a79a1e7e00a256bfb |
| eac60ed | https://github.com/python/cpython/pull/149408/commits/eac60ede1e87f8eab8008a2a79a1e7e00a256bfb |
|
| https://github.com/johnslavik |
| pythongh-148587 | https://github.com/python/cpython/issues/148587 |
| : Trim sys.lazy_modules contract test and NEWS | https://github.com/python/cpython/pull/149408/commits/0424a64806a0eb2c2ed31a85d7faf204dd4c6401 |
| 0424a64 | https://github.com/python/cpython/pull/149408/commits/0424a64806a0eb2c2ed31a85d7faf204dd4c6401 |
|
| https://github.com/johnslavik |
| pythongh-148587 | https://github.com/python/cpython/issues/148587 |
| : Align sys.__getattr__ with _ctypes/zlib pattern | https://github.com/python/cpython/pull/149408/commits/44049725abc3360b01a42f391dad5161ef317312 |
| 4404972 | https://github.com/python/cpython/pull/149408/commits/44049725abc3360b01a42f391dad5161ef317312 |
|
| https://github.com/johnslavik |
| pythongh-148587 | https://github.com/python/cpython/issues/148587 |
| : Use METH_VARARGS for sys.__getattr__ | https://github.com/python/cpython/pull/149408/commits/f4f8fb2a47c07af69f7d8c724e55cb7a741c0f1a |
| f4f8fb2 | https://github.com/python/cpython/pull/149408/commits/f4f8fb2a47c07af69f7d8c724e55cb7a741c0f1a |
|
| https://github.com/johnslavik |
| pythongh-148587 | https://github.com/python/cpython/issues/148587 |
| : Pre-size and short-circuit empty in lazy modules sna… | https://github.com/python/cpython/pull/149408/commits/a94f4e7a6672819948c173088688b17859ccf127 |
| a94f4e7 | https://github.com/python/cpython/pull/149408/commits/a94f4e7a6672819948c173088688b17859ccf127 |
|
| https://github.com/johnslavik |
| Revert pre-size and empty fast path in lazy modules snapshot | https://github.com/python/cpython/pull/149408/commits/926a02eecdd6e9a8d2c7d92641e3a02fbe738121 |
| 926a02e | https://github.com/python/cpython/pull/149408/commits/926a02eecdd6e9a8d2c7d92641e3a02fbe738121 |
| https://github.com/johnslavik |
| johnslavik | https://github.com/johnslavik |
| DinoV | https://github.com/DinoV |
| FFY00 | https://github.com/FFY00 |
| Yhg1s | https://github.com/Yhg1s |
| brettcannon | https://github.com/brettcannon |
| ericsnowcurrently | https://github.com/ericsnowcurrently |
| kumaraditya303 | https://github.com/kumaraditya303 |
| ncoghlan | https://github.com/ncoghlan |
| pablogsal | https://github.com/pablogsal |
| warsaw | https://github.com/warsaw |
| code owners | https://github.com/python/cpython/blob/f6d16a0d708c611dd96bb739f0896a0b6d7e04e8/.github/CODEOWNERS#L303 |
| May 5, 2026 11:37 | https://github.com/python/cpython/pull/149408#event-25173770534 |
| https://github.com/apps/bedevere-app |
| bedevere-app | https://github.com/apps/bedevere-app |
|
May 5, 2026
| https://github.com/python/cpython/pull/149408#ref-issue-4265366089 |
|
Revamp sys.lazy_modules
#148587
| https://github.com/python/cpython/issues/148587 |
| https://github.com/apps/bedevere-app |
| bedevere-app | https://github.com/apps/bedevere-app |
|
awaiting review
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22 |
| May 5, 2026 | https://github.com/python/cpython/pull/149408#event-25173774520 |
| https://github.com/apps/read-the-docs-community |
| read-the-docs-community | https://github.com/apps/read-the-docs-community |
| May 5, 2026 | https://github.com/python/cpython/pull/149408#issuecomment-4378899239 |
| Please reload this page | https://github.com/python/cpython/pull/149408 |
| cpython-previews | https://app.readthedocs.org/projects/cpython-previews/ |
| #32726871 | https://app.readthedocs.org/projects/cpython-previews/builds/32726871/ |
| e4bbea8 | https://github.com/python/cpython/commit/e4bbea82f46adf4ac426c1f400bfb45f948a15f4 |
| main | https://cpython-previews.readthedocs.io/en/main/ |
| f6d16a0 | https://github.com/python/cpython/commit/f6d16a0d708c611dd96bb739f0896a0b6d7e04e8 |
| 🔍 Preview build | https://cpython-previews--149408.org.readthedocs.build/en/149408/ |
| glossary.html | https://cpython-previews--149408.org.readthedocs.build/en/149408/glossary.html |
| c-api/concrete.html | https://cpython-previews--149408.org.readthedocs.build/en/149408/c-api/concrete.html |
| c-api/extension-modules.html | https://cpython-previews--149408.org.readthedocs.build/en/149408/c-api/extension-modules.html |
| c-api/index.html | https://cpython-previews--149408.org.readthedocs.build/en/149408/c-api/index.html |
| c-api/lifecycle.html | https://cpython-previews--149408.org.readthedocs.build/en/149408/c-api/lifecycle.html |
| c-api/module.html | https://cpython-previews--149408.org.readthedocs.build/en/149408/c-api/module.html |
| c-api/perfmaps.html | https://cpython-previews--149408.org.readthedocs.build/en/149408/c-api/perfmaps.html |
| c-api/stable.html | https://cpython-previews--149408.org.readthedocs.build/en/149408/c-api/stable.html |
| c-api/synchronization.html | https://cpython-previews--149408.org.readthedocs.build/en/149408/c-api/synchronization.html |
| c-api/type.html | https://cpython-previews--149408.org.readthedocs.build/en/149408/c-api/type.html |
| c-api/sentinel.html | https://cpython-previews--149408.org.readthedocs.build/en/149408/c-api/sentinel.html |
| c-api/slots.html | https://cpython-previews--149408.org.readthedocs.build/en/149408/c-api/slots.html |
| Please reload this page | https://github.com/python/cpython/pull/149408 |
| https://github.com/johnslavik |
| johnslavik | https://github.com/johnslavik |
| May 5, 2026 12:03 | https://github.com/python/cpython/pull/149408#event-25174660870 |
| https://github.com/apps/bedevere-app |
| bedevere-app | https://github.com/apps/bedevere-app |
|
awaiting review
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22 |
| May 5, 2026 | https://github.com/python/cpython/pull/149408#event-25174662553 |
| johnslavik | https://github.com/johnslavik |
| May 5, 2026 14:13 | https://github.com/python/cpython/pull/149408#commits-pushed-ca32d07 |
|
| https://github.com/johnslavik |
| Add docstring to sys.__getattr__ | https://github.com/python/cpython/pull/149408/commits/ca32d07bedc36ebb269f473fff119ce0cd34937b |
| ca32d07 | https://github.com/python/cpython/pull/149408/commits/ca32d07bedc36ebb269f473fff119ce0cd34937b |
|
| https://github.com/johnslavik |
| Add sys.__dir__ so lazy_modules appears in tab completion | https://github.com/python/cpython/pull/149408/commits/3dff9ef08fa8da73080233945f573e8951e36ed9 |
| 3dff9ef | https://github.com/python/cpython/pull/149408/commits/3dff9ef08fa8da73080233945f573e8951e36ed9 |
|
| https://github.com/johnslavik |
| Fix METH_NOARGS signature and wrap long line in sys_dir/sys_getattr | https://github.com/python/cpython/pull/149408/commits/2c0e3f2d8e89c28c7334d7ed493ec841cc55a4e1 |
| 2c0e3f2 | https://github.com/python/cpython/pull/149408/commits/2c0e3f2d8e89c28c7334d7ed493ec841cc55a4e1 |
|
| https://github.com/johnslavik |
| Add sys.lazy_modules docs and fix CI test failures | https://github.com/python/cpython/pull/149408/commits/17de69ef42653eb42c32f82f818affa1f6bda1cd |
| 17de69e | https://github.com/python/cpython/pull/149408/commits/17de69ef42653eb42c32f82f818affa1f6bda1cd |
|
| https://github.com/johnslavik |
| Remove internal _lazy_modules mention and bogus set_lazy_imports cros… | https://github.com/python/cpython/pull/149408/commits/46c6033a5eb6efb6944671a9fe6f759685ecac7c |
| 46c6033 | https://github.com/python/cpython/pull/149408/commits/46c6033a5eb6efb6944671a9fe6f759685ecac7c |
| https://github.com/johnslavik |
| johnslavik | https://github.com/johnslavik |
|
topic-lazy-imports
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atopic-lazy-imports |
| May 6, 2026 | https://github.com/python/cpython/pull/149408#event-25212763947 |
| https://github.com/brettcannon |
| brettcannon | https://github.com/brettcannon |
| May 6, 2026 20:49 | https://github.com/python/cpython/pull/149408#event-25235737947 |
|
| https://github.com/johnslavik |
| Fix test_sys_module_has_signatures: METH_NOARGS never has None text s… | https://github.com/python/cpython/pull/149408/commits/e4bbea82f46adf4ac426c1f400bfb45f948a15f4 |
| e4bbea8 | https://github.com/python/cpython/pull/149408/commits/e4bbea82f46adf4ac426c1f400bfb45f948a15f4 |
| https://github.com/johnslavik |
| johnslavik | https://github.com/johnslavik |
| May 19, 2026 | https://github.com/python/cpython/pull/149408#issuecomment-4488318973 |
| #150014 | https://github.com/python/cpython/pull/150014 |
| Please reload this page | https://github.com/python/cpython/pull/149408 |
| https://github.com/johnslavik |
| johnslavik | https://github.com/johnslavik |
| May 19, 2026 | https://github.com/python/cpython/pull/149408#event-25708281937 |
| https://github.com/johnslavik |
| johnslavik | https://github.com/johnslavik |
| May 19, 2026 13:39 | https://github.com/python/cpython/pull/149408#event-25708286559 |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F149408 |
|
| https://github.com/Yhg1s |
|
Yhg1s
| https://github.com/Yhg1s |
|
| https://github.com/DinoV |
|
DinoV
| https://github.com/DinoV |
|
| https://github.com/pablogsal |
|
pablogsal
| https://github.com/pablogsal |
|
| https://github.com/ericsnowcurrently |
|
ericsnowcurrently
| https://github.com/ericsnowcurrently |
|
| https://github.com/ncoghlan |
|
ncoghlan
| https://github.com/ncoghlan |
|
| https://github.com/warsaw |
|
warsaw
| https://github.com/warsaw |
|
| https://github.com/FFY00 |
|
FFY00
| https://github.com/FFY00 |
|
| https://github.com/kumaraditya303 |
|
kumaraditya303
| https://github.com/kumaraditya303 |
|
| https://github.com/brettcannon |
|
brettcannon
| https://github.com/brettcannon |
|
topic-lazy-imports
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atopic-lazy-imports |
| Please reload this page | https://github.com/python/cpython/pull/149408 |
|
| https://github.com/johnslavik |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |