René's URL Explorer Experiment


Title: [3.15] gh-155194: Fix not raising on non-module import (GH-155189) by brittanyrey · Pull Request #155983 · python/cpython · GitHub

Open Graph Title: [3.15] gh-155194: Fix not raising on non-module import (GH-155189) by brittanyrey · Pull Request #155983 · python/cpython

X Title: [3.15] gh-155194: Fix not raising on non-module import (GH-155189) by brittanyrey · Pull Request #155983 · python/cpython

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

Open Graph Description: Backporting #155189 from @DinoV Addresses issues: #155194 #151408 Issue: lazy imports allow lazy import math.pi #155194

X Description: Backporting #155189 from @DinoV Addresses issues: #155194 #151408 Issue: lazy imports allow lazy import math.pi #155194

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

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:e9efa8dc-0eb4-225f-c835-a6897c0b4179
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9072:1EFF:AABF84:E34928:6B0205FF
html-safe-noncef265ddbc58fbed7511f1e004544d7a24340f401284613fc5aa2c98624a3c8696
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MDcyOjFFRkY6QUFCRjg0OkUzNDkyODo2QjAyMDVGRiIsInZpc2l0b3JfaWQiOiI4NDI1MDU4NTkwMzcyNTI5NjYzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmaca4d441ac861f9766c0f62276c0c24000578c852146534e99d179d537d7b1b228
hovercard-subject-tagpull_request:4301268949
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/155983/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/a5ea67666303c54f2adeceda10d4d47e40205a94609f3dc14614e2504832d750/python/cpython/pull/155983
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a5ea67666303c54f2adeceda10d4d47e40205a94609f3dc14614e2504832d750/python/cpython/pull/155983
og:image:altBackporting #155189 from @DinoV Addresses issues: #155194 #151408 Issue: lazy imports allow lazy import math.pi #155194
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebrittanyrey
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-targetcanary-2
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/python/cpython/pull/155983#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F155983
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%2F155983
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/155983
Reloadhttps://github.com/python/cpython/pull/155983
Reloadhttps://github.com/python/cpython/pull/155983
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
brittanyrey:backport-dffac61-3.15https://github.com/brittanyrey/cpython/tree/backport-dffac61-3.15
Conversationhttps://github.com/python/cpython/pull/155983
Commits1 (1)https://github.com/python/cpython/pull/155983/commits
Checkshttps://github.com/python/cpython/pull/155983/checks
Files changedhttps://github.com/python/cpython/pull/155983/files
[3.15] gh-155194: Fix not raising on non-module import (GH-155189)https://github.com/python/cpython/pull/155983#top
pablogsalhttps://github.com/pablogsal
python:3.15https://github.com/python/cpython/tree/3.15
brittanyrey:backport-dffac61-3.15https://github.com/brittanyrey/cpython/tree/backport-dffac61-3.15
https://github.com/brittanyrey
brittanyreyhttps://github.com/brittanyrey
Aug 18, 2026https://github.com/python/cpython/pull/155983#issue-5177846924
Please reload this pagehttps://github.com/python/cpython/pull/155983
#155189https://github.com/python/cpython/pull/155189
@DinoVhttps://github.com/DinoV
#155194https://github.com/python/cpython/issues/155194
#151408https://github.com/python/cpython/issues/151408
lazy imports allow lazy import math.pi #155194https://github.com/python/cpython/issues/155194
Please reload this pagehttps://github.com/python/cpython/pull/155983
https://github.com/DinoV
https://github.com/brittanyrey
[3.15]https://github.com/python/cpython/pull/155983/commits/a70b4408d0c2431a640f1d75fb64fa08b55eab9b
pythongh-155194https://github.com/python/cpython/issues/155194
: Fix not raising on non-module import (https://github.com/python/cpython/pull/155983/commits/a70b4408d0c2431a640f1d75fb64fa08b55eab9b
pythonG…https://github.com/python/cpython/pull/155189
a70b440https://github.com/python/cpython/pull/155983/commits/a70b4408d0c2431a640f1d75fb64fa08b55eab9b
…H-155189https://github.com/python/cpython/pull/155189
dffac61https://github.com/brittanyrey/cpython/commit/dffac6163e693cf80ed42cdc8e2cb5c0cb9577d7
https://github.com/brittanyrey
brittanyreyhttps://github.com/brittanyrey
AA-Turnerhttps://github.com/AA-Turner
DinoVhttps://github.com/DinoV
FFY00https://github.com/FFY00
Yhg1shttps://github.com/Yhg1s
brettcannonhttps://github.com/brettcannon
emmatypinghttps://github.com/emmatyping
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
erlend-aaslandhttps://github.com/erlend-aasland
kumaraditya303https://github.com/kumaraditya303
ncoghlanhttps://github.com/ncoghlan
pablogsalhttps://github.com/pablogsal
warsawhttps://github.com/warsaw
code ownershttps://github.com/python/cpython/blob/ac4e5d2108ccc6c60bf836f39f7cfb3a91ef2c82/.github/CODEOWNERS#L85
August 18, 2026 03:46https://github.com/python/cpython/pull/155983#event-29595747374
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Aug 18, 2026 https://github.com/python/cpython/pull/155983#ref-issue-5065002590
lazy imports allow lazy import math.pi #155194 https://github.com/python/cpython/issues/155194
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
topic-lazy-imports https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atopic-lazy-imports
Aug 18, 2026https://github.com/python/cpython/pull/155983#event-29595750080
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Aug 18, 2026 https://github.com/python/cpython/pull/155983#ref-pullrequest-5063919137
gh-155194: Fix not raising on non-module import #155189 https://github.com/python/cpython/pull/155189
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
Aug 18, 2026https://github.com/python/cpython/pull/155983#event-29595750585
https://github.com/DinoV
DinoVhttps://github.com/DinoV
Aug 19, 2026 https://github.com/python/cpython/pull/155983#pullrequestreview-4967227139
View reviewed changes https://github.com/python/cpython/pull/155983/files/a70b4408d0c2431a640f1d75fb64fa08b55eab9b
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
Aug 19, 2026https://github.com/python/cpython/pull/155983#event-29652845475
https://github.com/DinoV
DinoVhttps://github.com/DinoV
release-blocker https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Arelease-blocker
Aug 19, 2026https://github.com/python/cpython/pull/155983#event-29652851599
https://github.com/apps/github-project-automation
github-project-automationhttps://github.com/apps/github-project-automation
Release and Deferred blockers 🚫https://github.com/orgs/python/projects/2
Aug 19, 2026https://github.com/python/cpython/pull/155983#event-29652872948
https://github.com/apps/github-project-automation
github-project-automationhttps://github.com/apps/github-project-automation
Release and Deferred blockers 🚫https://github.com/orgs/python/projects/2
Aug 19, 2026https://github.com/python/cpython/pull/155983#event-29652905508
https://github.com/DinoV
DinoVhttps://github.com/DinoV
release-blocker https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Arelease-blocker
release-blocker https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Arelease-blocker
Aug 19, 2026https://github.com/python/cpython/pull/155983#event-29652883619
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
e531dd4https://github.com/python/cpython/commit/e531dd4b7e6961aab54c19ee90bd80420e24f82d
Aug 19, 2026https://github.com/python/cpython/pull/155983#event-29674464705
Please reload this pagehttps://github.com/python/cpython/pull/155983
https://github.com/apps/github-project-automation
github-project-automationhttps://github.com/apps/github-project-automation
Release and Deferred blockers 🚫https://github.com/orgs/python/projects/2
Aug 19, 2026https://github.com/python/cpython/pull/155983#event-29674469869
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
Aug 19, 2026https://github.com/python/cpython/pull/155983#event-29674467646
https://github.com/brittanyrey
brittanyreyhttps://github.com/brittanyrey
September 1, 2026 03:34https://github.com/python/cpython/pull/155983#event-30320181736
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%2F155983
https://github.com/DinoV
DinoV https://github.com/DinoV
https://github.com/python/cpython/pull/155983/files/a70b4408d0c2431a640f1d75fb64fa08b55eab9b
https://github.com/Yhg1s
Yhg1s https://github.com/Yhg1s
https://github.com/pablogsal
pablogsal https://github.com/pablogsal
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/erlend-aasland
erlend-aasland https://github.com/erlend-aasland
https://github.com/AA-Turner
AA-Turner https://github.com/AA-Turner
https://github.com/emmatyping
emmatyping https://github.com/emmatyping
Please reload this pagehttps://github.com/python/cpython/pull/155983
release-blocker https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Arelease-blocker
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
topic-lazy-imports https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atopic-lazy-imports
Release and Deferred blockers 🚫 https://github.com/orgs/python/projects/2
Please reload this pagehttps://github.com/python/cpython/pull/155983
https://github.com/brittanyrey
https://github.com/DinoV
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.