René's URL Explorer Experiment


Title: [3.15] gh-157757: Fix to make `lazy import a.b as c` import the module `a.b` (GH-158092) by pablogsal · Pull Request #158257 · python/cpython · GitHub

Open Graph Title: [3.15] gh-157757: Fix to make `lazy import a.b as c` import the module `a.b` (GH-158092) by pablogsal · Pull Request #158257 · python/cpython

X Title: [3.15] gh-157757: Fix to make `lazy import a.b as c` import the module `a.b` (GH-158092) by pablogsal · Pull Request #158257 · python/cpython

Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.

Open Graph Description: Backport of #158092 to 3.15. The automatic cherry-pick conflicted because 3.15 lacks the surrounding test class and the lazy-import exclusion file. The regression tests now have their own class and...

X Description: Backport of #158092 to 3.15. The automatic cherry-pick conflicted because 3.15 lacks the surrounding test class and the lazy-import exclusion file. The regression tests now have their own class and...

Mail addresses
breynoso@meta.com

Opengraph URL: https://github.com/python/cpython/pull/158257

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:da0424c7-5194-999f-42bc-53abe8474bd1
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE4FE:785A9:3A8031C:4A440C8:6B01FD00
html-safe-nonceb7c86e1d397e51c3426a7fc95fe531ee2d7c1de081aa294c687ad4ff09d5d988
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNEZFOjc4NUE5OjNBODAzMUM6NEE0NDBDODo2QjAxRkQwMCIsInZpc2l0b3JfaWQiOiIxMjUzODM0NDM4Nzg2Mjg0ODAwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacb6140cf7f69e873d8653325cba450d54d5a0d81768671a1f69ab906970a032ee
hovercard-subject-tagpull_request:4649531246
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/158257/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/0b7a6deac1735f6b9ee5e696cc0194fd8cd8779f1ac923efcc9e87ac826bc4e2/python/cpython/pull/158257
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/0b7a6deac1735f6b9ee5e696cc0194fd8cd8779f1ac923efcc9e87ac826bc4e2/python/cpython/pull/158257
og:image:altBackport of #158092 to 3.15. The automatic cherry-pick conflicted because 3.15 lacks the surrounding test class and the lazy-import exclusion file. The regression tests now have their own class and...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamepablogsal
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-cache
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/python/cpython/pull/158257#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F158257
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F158257
Sign uphttps://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
Reloadhttps://github.com/python/cpython/pull/158257
Reloadhttps://github.com/python/cpython/pull/158257
Reloadhttps://github.com/python/cpython/pull/158257
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
https://github.com/python/cpython
pablogsalhttps://github.com/pablogsal
python:3.15https://github.com/python/cpython/tree/3.15
pablogsal:backport-158092-3.15https://github.com/pablogsal/cpython/tree/backport-158092-3.15
Conversationhttps://github.com/python/cpython/pull/158257
Commits1 (1)https://github.com/python/cpython/pull/158257/commits
Checkshttps://github.com/python/cpython/pull/158257/checks
Files changedhttps://github.com/python/cpython/pull/158257/files
[3.15] gh-157757: Fix to make lazy import a.b as c import the module a.b (GH-158092)https://github.com/python/cpython/pull/158257#top
pablogsalhttps://github.com/pablogsal
python:3.15https://github.com/python/cpython/tree/3.15
pablogsal:backport-158092-3.15https://github.com/pablogsal/cpython/tree/backport-158092-3.15
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
Sep 26, 2026https://github.com/python/cpython/pull/158257#issue-5597143276
#158092https://github.com/python/cpython/pull/158092
1e8ff18https://github.com/python/cpython/commit/1e8ff18a1215b711136b4377282e392583847d62
lazy import a.b as c resolves b as an attribute of a instead of importing the module a.b #157757https://github.com/python/cpython/issues/157757
Please reload this pagehttps://github.com/python/cpython/pull/158257
https://github.com/brittanyrey
https://github.com/pablogsal
pythongh-157757https://github.com/python/cpython/issues/157757
: Fix to makehttps://github.com/python/cpython/pull/158257/commits/d6590d6b676b1f39be70b6ae3d88043896822f85
lazy import a.b as chttps://github.com/python/cpython/pull/158257/commits/d6590d6b676b1f39be70b6ae3d88043896822f85
import the module…https://github.com/python/cpython/pull/158257/commits/d6590d6b676b1f39be70b6ae3d88043896822f85
d6590d6https://github.com/python/cpython/pull/158257/commits/d6590d6b676b1f39be70b6ae3d88043896822f85
python#158092https://github.com/python/cpython/pull/158092
pythongh-157757https://github.com/python/cpython/issues/157757
1e8ff18https://github.com/pablogsal/cpython/commit/1e8ff18a1215b711136b4377282e392583847d62
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
DinoVhttps://github.com/DinoV
FFY00https://github.com/FFY00
Yhg1shttps://github.com/Yhg1s
brettcannonhttps://github.com/brettcannon
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
kumaraditya303https://github.com/kumaraditya303
markshannonhttps://github.com/markshannon
ncoghlanhttps://github.com/ncoghlan
warsawhttps://github.com/warsaw
code ownershttps://github.com/python/cpython/blob/8f36ce3d509caf5d7b3c41478d7aed0df2c485ce/.github/CODEOWNERS#L297
September 26, 2026 20:38https://github.com/python/cpython/pull/158257#event-31905545447
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Sep 26, 2026 https://github.com/python/cpython/pull/158257#ref-issue-5500997289
lazy import a.b as c resolves b as an attribute of a instead of importing the module a.b #157757 https://github.com/python/cpython/issues/157757
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
topic-lazy-imports https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atopic-lazy-imports
Sep 26, 2026https://github.com/python/cpython/pull/158257#event-31905549052
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Sep 26, 2026 https://github.com/python/cpython/pull/158257#ref-pullrequest-5570004710
gh-157757: Fix to make lazy import a.b as c import the module a.b #158092 https://github.com/python/cpython/pull/158092
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
September 26, 2026 20:39https://github.com/python/cpython/pull/158257#event-31905557529
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
1a2d24ehttps://github.com/python/cpython/commit/1a2d24e3bf410b728c4f592bde0be40d3e024dea
Sep 26, 2026https://github.com/python/cpython/pull/158257#event-31906590532
Please reload this pagehttps://github.com/python/cpython/pull/158257
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
September 26, 2026 21:13https://github.com/python/cpython/pull/158257#event-31906591225
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Sep 26, 2026https://github.com/python/cpython/pull/158257#event-31906592292
Kronuzhttps://github.com/Kronuz
Oct 1, 2026 https://github.com/python/cpython/pull/158257#ref-commit-0bf1009
https://github.com/pablogsal
https://github.com/brittanyrey
https://github.com/Kronuz
[3.15]https://github.com/Kronuz/cpython/commit/0bf1009076f0e438658ab84bc8cd0c30da4255a6
pythongh-157757https://github.com/python/cpython/issues/157757
: Fix to makehttps://github.com/Kronuz/cpython/commit/0bf1009076f0e438658ab84bc8cd0c30da4255a6
lazy import a.b as chttps://github.com/Kronuz/cpython/commit/0bf1009076f0e438658ab84bc8cd0c30da4255a6
import the…https://github.com/Kronuz/cpython/commit/0bf1009076f0e438658ab84bc8cd0c30da4255a6
0bf1009https://github.com/Kronuz/cpython/commit/0bf1009076f0e438658ab84bc8cd0c30da4255a6
pythonGH-158092https://github.com/python/cpython/pull/158092
python#158257https://github.com/python/cpython/pull/158257
pythongh-157757https://github.com/python/cpython/issues/157757
python#158092https://github.com/python/cpython/pull/158092
pythongh-157757https://github.com/python/cpython/issues/157757
1e8ff18https://github.com/Kronuz/cpython/commit/1e8ff18a1215b711136b4377282e392583847d62
1a2d24ehttps://github.com/Kronuz/cpython/commit/1a2d24e3bf410b728c4f592bde0be40d3e024dea
Kronuzhttps://github.com/Kronuz
Oct 5, 2026 https://github.com/python/cpython/pull/158257#ref-commit-2279ffb
https://github.com/pablogsal
https://github.com/brittanyrey
https://github.com/Kronuz
[3.15]https://github.com/Kronuz/cpython/commit/2279ffbd9e93fa40b06ca4bfe706caea827f4ffe
pythongh-157757https://github.com/python/cpython/issues/157757
: Fix to makehttps://github.com/Kronuz/cpython/commit/2279ffbd9e93fa40b06ca4bfe706caea827f4ffe
lazy import a.b as chttps://github.com/Kronuz/cpython/commit/2279ffbd9e93fa40b06ca4bfe706caea827f4ffe
import the…https://github.com/Kronuz/cpython/commit/2279ffbd9e93fa40b06ca4bfe706caea827f4ffe
2279ffbhttps://github.com/Kronuz/cpython/commit/2279ffbd9e93fa40b06ca4bfe706caea827f4ffe
pythonGH-158092https://github.com/python/cpython/pull/158092
python#158257https://github.com/python/cpython/pull/158257
pythongh-157757https://github.com/python/cpython/issues/157757
python#158092https://github.com/python/cpython/pull/158092
pythongh-157757https://github.com/python/cpython/issues/157757
1e8ff18https://github.com/Kronuz/cpython/commit/1e8ff18a1215b711136b4377282e392583847d62
1a2d24ehttps://github.com/Kronuz/cpython/commit/1a2d24e3bf410b728c4f592bde0be40d3e024dea
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F158257
https://github.com/Yhg1s
Yhg1s https://github.com/Yhg1s
https://github.com/DinoV
DinoV https://github.com/DinoV
https://github.com/brettcannon
brettcannon https://github.com/brettcannon
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/markshannon
markshannon https://github.com/markshannon
Please reload this pagehttps://github.com/python/cpython/pull/158257
topic-lazy-imports https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atopic-lazy-imports
Please reload this pagehttps://github.com/python/cpython/pull/158257
https://github.com/pablogsal
https://github.com/brittanyrey
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.