René's URL Explorer Experiment


Title: gh-158824: Fix `__getattr__` blocking reification of lazy imports by brittanyrey · Pull Request #158825 · python/cpython · GitHub

Open Graph Title: gh-158824: Fix `__getattr__` blocking reification of lazy imports by brittanyrey · Pull Request #158825 · python/cpython

X Title: gh-158824: Fix `__getattr__` blocking reification of lazy imports by brittanyrey · Pull Request #158825 · python/cpython

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

Open Graph Description: Module attribute lookup called the module's getattr before resolving a lazy import placeholder. That was the fix for gh-144957, needed while lazy from imports put placeholders into the source m...

X Description: Module attribute lookup called the module's getattr before resolving a lazy import placeholder. That was the fix for gh-144957, needed while lazy from imports put placeholders into the sour...

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

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/:user_id/:repository/pull/*id(.:format)
route-controllerpull_requests
route-actionshow
fetch-noncev2:334c859e-c864-d2c4-310b-daa2ca0c2c83
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8C80:3D97C8:2F6A41A:3F2141C:6B01DE19
html-safe-nonce680285ce7619a8981036f69450754c50ed375c6ea3eb6ccfcf0e0e9fc2457607
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QzgwOjNEOTdDODoyRjZBNDFBOjNGMjE0MUM6NkIwMURFMTkiLCJ2aXNpdG9yX2lkIjoiMzUwNDczMjkwMjA0NDg1MTczNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacce6e3a1eed9de314a92763c9e3303ee0bebd90ca02dc5cfeaec98550880d3d8a
hovercard-subject-tagpull_request:4739778699
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///pull_requests/show
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/158825
twitter:imagehttps://opengraph.githubassets.com/b19b0cd2c85514952a0e130062726e4bd154e6e95477e9332807e32e85aefd50/python/cpython/pull/158825
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b19b0cd2c85514952a0e130062726e4bd154e6e95477e9332807e32e85aefd50/python/cpython/pull/158825
og:image:altModule attribute lookup called the module's getattr before resolving a lazy import placeholder. That was the fix for gh-144957, needed while lazy from imports put placeholders into the source m...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebrittanyrey
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
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
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/python/cpython/pull/158825#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F158825
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%2F158825
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/158825
Reloadhttps://github.com/python/cpython/pull/158825
Reloadhttps://github.com/python/cpython/pull/158825
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
encukouhttps://github.com/encukou
python:mainhttps://github.com/python/cpython/tree/main
brittanyrey:b-lazy-module-getattr-precedencehttps://github.com/brittanyrey/cpython/tree/b-lazy-module-getattr-precedence
Conversationhttps://github.com/python/cpython/pull/158825
Commits4 (4)https://github.com/python/cpython/pull/158825/commits
Checkshttps://github.com/python/cpython/pull/158825/checks
Files changedhttps://github.com/python/cpython/pull/158825/files
gh-158824: Fix __getattr__ blocking reification of lazy importshttps://github.com/python/cpython/pull/158825#top
encukouhttps://github.com/encukou
python:mainhttps://github.com/python/cpython/tree/main
brittanyrey:b-lazy-module-getattr-precedencehttps://github.com/brittanyrey/cpython/tree/b-lazy-module-getattr-precedence
https://github.com/brittanyrey
brittanyreyhttps://github.com/brittanyrey
Oct 5, 2026https://github.com/python/cpython/pull/158825#issue-5705954396
Please reload this pagehttps://github.com/python/cpython/pull/158825
gh-144957https://github.com/python/cpython/issues/144957
gh-150052https://github.com/python/cpython/issues/150052
Module __getattr__ shadows a module's own lazy imports #158824https://github.com/python/cpython/issues/158824
Please reload this pagehttps://github.com/python/cpython/pull/158825
https://github.com/brittanyrey
Don't let module __getattr__ shadow a module's own lazy importshttps://github.com/python/cpython/pull/158825/commits/9a55b7869a7213edf16ec459c33821801a4122d1
9a55b78https://github.com/python/cpython/pull/158825/commits/9a55b7869a7213edf16ec459c33821801a4122d1
https://github.com/brittanyrey
brittanyreyhttps://github.com/brittanyrey
DinoVhttps://github.com/DinoV
Yhg1shttps://github.com/Yhg1s
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
pablogsalhttps://github.com/pablogsal
code ownershttps://github.com/python/cpython/blob/182f3231542e84fd1b0c795898f69f61fe35df0e/.github/CODEOWNERS#L296
October 5, 2026 03:23https://github.com/python/cpython/pull/158825#event-32474503359
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Oct 5, 2026 https://github.com/python/cpython/pull/158825#ref-issue-5705951208
Module __getattr__ shadows a module's own lazy imports #158824 https://github.com/python/cpython/issues/158824
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Oct 5, 2026https://github.com/python/cpython/pull/158825#event-32474507530
blurb-ithttps://github.com/apps/blurb-it
October 5, 2026 03:25https://github.com/python/cpython/pull/158825#commits-pushed-c83d220
https://github.com/apps/blurb-it
📜🤖 Added by blurb_it.https://github.com/python/cpython/pull/158825/commits/c83d2206223aae13068bb41427373641cf15eb4d
c83d220https://github.com/python/cpython/pull/158825/commits/c83d2206223aae13068bb41427373641cf15eb4d
https://github.com/brittanyrey
Extend the module __getattr__ test and fix the NEWS entry markuphttps://github.com/python/cpython/pull/158825/commits/ebcb52c915db5ee75d38ee45d0524dec5137bcdd
ebcb52chttps://github.com/python/cpython/pull/158825/commits/ebcb52c915db5ee75d38ee45d0524dec5137bcdd
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
Oct 5, 2026 https://github.com/python/cpython/pull/158825#pullrequestreview-5412779385
View reviewed changes https://github.com/python/cpython/pull/158825/files/ebcb52c915db5ee75d38ee45d0524dec5137bcdd
pablogsalhttps://github.com/pablogsal
https://github.com/python/cpython/pull/158825#pullrequestreview-5412779385
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/158825
Misc/NEWS.d/next/Core_and_Builtins/2026-10-05-03-25-30.gh-issue-158824.h-hJj7.rsthttps://github.com/python/cpython/pull/158825/files/ebcb52c915db5ee75d38ee45d0524dec5137bcdd#diff-cc2131acd6d25bc62189fb3797320a8fc7477e407a146b3c2f699f6105c36da3
Please reload this pagehttps://github.com/python/cpython/pull/158825
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Oct 5, 2026https://github.com/python/cpython/pull/158825#event-32496626186
https://github.com/brittanyrey
Reword the NEWS entry to describe the fixhttps://github.com/python/cpython/pull/158825/commits/e71c95070463cf76a6a574d09bb38831472aaa10
e71c950https://github.com/python/cpython/pull/158825/commits/e71c95070463cf76a6a574d09bb38831472aaa10
https://github.com/brittanyrey
brittanyreyhttps://github.com/brittanyrey
Oct 5, 2026https://github.com/python/cpython/pull/158825#issuecomment-6002268762
Please reload this pagehttps://github.com/python/cpython/pull/158825
https://github.com/encukou
encukouhttps://github.com/encukou
Oct 8, 2026 https://github.com/python/cpython/pull/158825#pullrequestreview-5456821975
View reviewed changes https://github.com/python/cpython/pull/158825/files/e71c95070463cf76a6a574d09bb38831472aaa10
https://github.com/encukou
encukouhttps://github.com/encukou
56f9837https://github.com/python/cpython/commit/56f9837db25fd65fa6d10862e572270574ab2b0d
Oct 8, 2026https://github.com/python/cpython/pull/158825#event-32788606778
Please reload this pagehttps://github.com/python/cpython/pull/158825
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
Oct 8, 2026https://github.com/python/cpython/pull/158825#event-32788612075
https://github.com/encukou
encukouhttps://github.com/encukou
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
needs backport to 3.15 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.15%22
Oct 8, 2026https://github.com/python/cpython/pull/158825#event-32788613786
https://github.com/apps/miss-islington-app
miss-islington-apphttps://github.com/apps/miss-islington-app
Oct 8, 2026https://github.com/python/cpython/pull/158825#issuecomment-6060287506
@brittanyreyhttps://github.com/brittanyrey
@encukouhttps://github.com/encukou
Please reload this pagehttps://github.com/python/cpython/pull/158825
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Oct 8, 2026https://github.com/python/cpython/pull/158825#issuecomment-6060292803
GH-159022https://github.com/python/cpython/pull/159022
3.15 branchhttps://github.com/python/cpython/tree/3.15
Please reload this pagehttps://github.com/python/cpython/pull/158825
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
needs backport to 3.15 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.15%22
Oct 8, 2026https://github.com/python/cpython/pull/158825#event-32788640900
https://github.com/brittanyrey
brittanyreyhttps://github.com/brittanyrey
October 9, 2026 13:41https://github.com/python/cpython/pull/158825#event-32879721028
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
Oct 9, 2026 https://github.com/python/cpython/pull/158825#ref-issue-5785862370
Request for Python triage membership: Brittany Reynoso python/core-workflow#609 https://github.com/python/core-workflow/issues/609
encukouhttps://github.com/encukou
Oct 12, 2026 https://github.com/python/cpython/pull/158825#ref-commit-aad4500
https://github.com/miss-islington
https://github.com/brittanyrey
[3.15]https://github.com/python/cpython/commit/aad4500cd14bcd022b291c293f8cefadcd266302
gh-158824https://github.com/python/cpython/issues/158824
: Fixhttps://github.com/python/cpython/commit/aad4500cd14bcd022b291c293f8cefadcd266302
__getattr__https://github.com/python/cpython/commit/aad4500cd14bcd022b291c293f8cefadcd266302
blocking reification of lazy impo…https://github.com/python/cpython/commit/aad4500cd14bcd022b291c293f8cefadcd266302
aad4500https://github.com/python/cpython/commit/aad4500cd14bcd022b291c293f8cefadcd266302
GH-158825https://github.com/python/cpython/pull/158825
GH-159022https://github.com/python/cpython/pull/159022
56f9837https://github.com/python/cpython/commit/56f9837db25fd65fa6d10862e572270574ab2b0d
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%2F158825
https://github.com/encukou
encukou https://github.com/encukou
https://github.com/python/cpython/pull/158825/files/e71c95070463cf76a6a574d09bb38831472aaa10
https://github.com/pablogsal
pablogsal https://github.com/pablogsal
https://github.com/python/cpython/pull/158825/files/ebcb52c915db5ee75d38ee45d0524dec5137bcdd
https://github.com/Yhg1s
Yhg1s https://github.com/Yhg1s
https://github.com/DinoV
DinoV https://github.com/DinoV
https://github.com/ericsnowcurrently
ericsnowcurrently https://github.com/ericsnowcurrently
Please reload this pagehttps://github.com/python/cpython/pull/158825
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
Please reload this pagehttps://github.com/python/cpython/pull/158825
https://github.com/brittanyrey
https://github.com/encukou
https://github.com/pablogsal
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.