René's URL Explorer Experiment


Title: gh-70319: Deprecate usage of load_module() by brettcannon · Pull Request #23469 · python/cpython · GitHub

Open Graph Title: gh-70319: Deprecate usage of load_module() by brettcannon · Pull Request #23469 · python/cpython

X Title: gh-70319: Deprecate usage of load_module() by brettcannon · Pull Request #23469 · python/cpython

Description: Raise an ImportWarning when the import system falls back on load_module(). As for implementations of load_module(), raise a DeprecationWarning. https://bugs.python.org/issue26131 Automerge-Trigge...

Open Graph Description: Raise an ImportWarning when the import system falls back on load_module(). As for implementations of load_module(), raise a DeprecationWarning. https://bugs.python.org/issue26131 Automerge-Trigge...

X Description: Raise an ImportWarning when the import system falls back on load_module(). As for implementations of load_module(), raise a DeprecationWarning. https://bugs.python.org/issue26131 Automerge-Trigge...

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

X: @github

direct link

Domain: github.com

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:a511e535-a925-bb4b-0946-411742e8ad8c
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD7BA:1860A8:DB1D7B:13094E3:696A8270
html-safe-nonceddfc447ccfdb6a010ad606acfd814f8fdf003599ee50b5152dc6f85e7045afef
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEN0JBOjE4NjBBODpEQjFEN0I6MTMwOTRFMzo2OTZBODI3MCIsInZpc2l0b3JfaWQiOiIyOTY4OTk1OTA0MzMzOTcyMDgwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmace3f76e7804c6126d607b1633d8628baccb08126ffbda0c9d6977015b54adee07
hovercard-subject-tagpull_request:525352193
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/23469/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/bf56c1cd1f2ee109c8fca764f059b7e7cb5355a54243dbd9e87d05954ee29a13/python/cpython/pull/23469
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/bf56c1cd1f2ee109c8fca764f059b7e7cb5355a54243dbd9e87d05954ee29a13/python/cpython/pull/23469
og:image:altRaise an ImportWarning when the import system falls back on load_module(). As for implementations of load_module(), raise a DeprecationWarning. https://bugs.python.org/issue26131 Automerge-Trigge...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebrettcannon
hostnamegithub.com
expected-hostnamegithub.com
None913560fa317c3c5a71e34f9b19253c9f09d02b4b958a86c2a56f4c8541116377
turbo-cache-controlno-preview
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
release5998c30593994bf2589055aef7b22d368a499367
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/23469#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F23469
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://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%2F23469
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
Reloadhttps://github.com/python/cpython/pull/23469
Reloadhttps://github.com/python/cpython/pull/23469
Reloadhttps://github.com/python/cpython/pull/23469
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/23469
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.1k 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.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/cpython/security
Please reload this pagehttps://github.com/python/cpython/pull/23469
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 https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
Jump to bottomhttps://github.com/python/cpython/pull/23469#issue-comment-box
brettcannonhttps://github.com/brettcannon
python:masterhttps://github.com/python/cpython/tree/master
brettcannon:deprecate-load_modulehttps://github.com/brettcannon/cpython/tree/deprecate-load_module
gh-70319: Deprecate usage of load_module() https://github.com/python/cpython/pull/23469#top
brettcannonhttps://github.com/brettcannon
python:masterhttps://github.com/python/cpython/tree/master
brettcannon:deprecate-load_modulehttps://github.com/brettcannon/cpython/tree/deprecate-load_module
Conversation 1 https://github.com/python/cpython/pull/23469
Commits 12 https://github.com/python/cpython/pull/23469/commits
Checks 0 https://github.com/python/cpython/pull/23469/checks
Files changed https://github.com/python/cpython/pull/23469/files
Please reload this pagehttps://github.com/python/cpython/pull/23469
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/brettcannon
brettcannonhttps://github.com/brettcannon
Nov 22, 2020https://github.com/python/cpython/pull/23469#issue-748344066
Please reload this pagehttps://github.com/python/cpython/pull/23469
https://bugs.python.org/issue26131https://bugs.python.org/issue26131
Raise ImportWarning when loader.load_module() is used #70319https://github.com/python/cpython/issues/70319
Please reload this pagehttps://github.com/python/cpython/pull/23469
brettcannonhttps://github.com/brettcannon
October 22, 2020 17:28https://github.com/python/cpython/pull/23469#commits-pushed-4c7284c
https://github.com/brettcannon
bpo-26131: deprecate the use of load_module()https://github.com/python/cpython/pull/23469/commits/4c7284cf6b6952ebf3941a1bf3be6128a4b8ad77
4c7284chttps://github.com/python/cpython/pull/23469/commits/4c7284cf6b6952ebf3941a1bf3be6128a4b8ad77
https://github.com/brettcannon
Fix a grammatical error in a commenthttps://github.com/python/cpython/pull/23469/commits/f05002bd5f41982fe1a0f2acdf6de34a3d4992d9
f05002bhttps://github.com/python/cpython/pull/23469/commits/f05002bd5f41982fe1a0f2acdf6de34a3d4992d9
https://github.com/brettcannon
Merge branch 'master' into deprecate-load_modulehttps://github.com/python/cpython/pull/23469/commits/0c09542f41118a638e6db1aec05ff2b11bac9c7a
0c09542https://github.com/python/cpython/pull/23469/commits/0c09542f41118a638e6db1aec05ff2b11bac9c7a
https://github.com/brettcannon
Update to print out the loader's name in the ImportWarninghttps://github.com/python/cpython/pull/23469/commits/57f6a12946cff5383c0e2fd8adfb645baa5b888a
57f6a12https://github.com/python/cpython/pull/23469/commits/57f6a12946cff5383c0e2fd8adfb645baa5b888a
https://github.com/brettcannon
Merge branch 'master' into deprecate-load_modulehttps://github.com/python/cpython/pull/23469/commits/7c549143a2d4719ea2baa25eb5cf267ca02e9c11
7c54914https://github.com/python/cpython/pull/23469/commits/7c549143a2d4719ea2baa25eb5cf267ca02e9c11
https://github.com/brettcannon
Deprecate zipimport's load_module() methodhttps://github.com/python/cpython/pull/23469/commits/023cdaf8db231484ef6fa3f20766261ad81b909a
023cdafhttps://github.com/python/cpython/pull/23469/commits/023cdaf8db231484ef6fa3f20766261ad81b909a
https://github.com/brettcannon
Silence ImportWarning in test_venvhttps://github.com/python/cpython/pull/23469/commits/0a3d4c9e8c9f59ee6659b866e8d0def5d6ba19ff
0a3d4c9https://github.com/python/cpython/pull/23469/commits/0a3d4c9e8c9f59ee6659b866e8d0def5d6ba19ff
https://github.com/brettcannon
Add a news entry for the zipimport deprecationhttps://github.com/python/cpython/pull/23469/commits/7a673ac41cf2bf274cfceb4bb89ccdd3cf167484
7a673achttps://github.com/python/cpython/pull/23469/commits/7a673ac41cf2bf274cfceb4bb89ccdd3cf167484
https://github.com/brettcannon
Add a What's New entry for zipimport deprecationhttps://github.com/python/cpython/pull/23469/commits/15e6b70a819c96ca334448b070f573d8c0326ca3
15e6b70https://github.com/python/cpython/pull/23469/commits/15e6b70a819c96ca334448b070f573d8c0326ca3
https://github.com/brettcannon
Tweak the deprecation message for zipimporthttps://github.com/python/cpython/pull/23469/commits/305d2a7252f249af2a3489602a00df8ebb21b2c5
305d2a7https://github.com/python/cpython/pull/23469/commits/305d2a7252f249af2a3489602a00df8ebb21b2c5
https://github.com/brettcannon
Re-generate zipimporthttps://github.com/python/cpython/pull/23469/commits/5985e107b47a9bc07fe03334af2f7489303a78bc
5985e10https://github.com/python/cpython/pull/23469/commits/5985e107b47a9bc07fe03334af2f7489303a78bc
https://github.com/brettcannon
brettcannonhttps://github.com/brettcannon
encukouhttps://github.com/encukou
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
ncoghlanhttps://github.com/ncoghlan
vsajiphttps://github.com/vsajip
warsawhttps://github.com/warsaw
code ownershttps://github.com/python/cpython/blob/313467efdc23a1ec8662b77d2001642be598f80a/.github/CODEOWNERS#L51
November 22, 2020 20:34https://github.com/python/cpython/pull/23469#event-4025225391
https://github.com/the-knights-who-say-ni
the-knights-who-say-nihttps://github.com/the-knights-who-say-ni
CLA signed https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22CLA%20signed%22
Nov 22, 2020https://github.com/python/cpython/pull/23469#event-4025225431
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Nov 22, 2020https://github.com/python/cpython/pull/23469#event-4025225472
https://github.com/brettcannon
brettcannonhttps://github.com/brettcannon
Nov 22, 2020https://github.com/python/cpython/pull/23469#issuecomment-731843301
#22905https://github.com/python/cpython/pull/22905
Please reload this pagehttps://github.com/python/cpython/pull/23469
https://github.com/brettcannon
Merge branch 'master' into deprecate-load_modulehttps://github.com/python/cpython/pull/23469/commits/9575bc2256e1354ece82dbb89f419110ff85f5c8
9575bc2https://github.com/python/cpython/pull/23469/commits/9575bc2256e1354ece82dbb89f419110ff85f5c8
https://github.com/brettcannon
brettcannonhttps://github.com/brettcannon
🤖 automerge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22%3Arobot%3A%20automerge%22
Dec 4, 2020https://github.com/python/cpython/pull/23469#event-4074746665
https://github.com/brettcannon
brettcannonhttps://github.com/brettcannon
2de5097https://github.com/python/cpython/commit/2de5097ba4c50eba90df55696a7b2e74c93834d4
Dec 4, 2020https://github.com/python/cpython/pull/23469#event-4074881431
https://github.com/brettcannon
brettcannonhttps://github.com/brettcannon
December 4, 2020 23:39https://github.com/python/cpython/pull/23469#event-4074881490
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Dec 4, 2020https://github.com/python/cpython/pull/23469#event-4074881535
https://github.com/frenzymadness
frenzymadnesshttps://github.com/frenzymadness
Dec 11, 2020 https://github.com/python/cpython/pull/23469#ref-issue-747883671
Implement create_module() and exec_module() for _SixMetaPathImporter benjaminp/six#341 https://github.com/benjaminp/six/issues/341
[Forward compatibility][BUG] pkg_resources.extern.VendorImporter lacks exec_module() method pypa/setuptools#2481 https://github.com/pypa/setuptools/issues/2481
[Forward compatibility] Custom module finders must implement an exec_module() method ansible/ansible#72952 https://github.com/ansible/ansible/issues/72952
https://github.com/blueyed
blueyedhttps://github.com/blueyed
Dec 19, 2020 https://github.com/python/cpython/pull/23469#ref-issue-771437552
ImportWarning: VendorImporter.exec_module() not found; falling back to load_module() pypa/packaging#375 https://github.com/pypa/packaging/issues/375
https://github.com/asottile
asottilehttps://github.com/asottile
Jan 13, 2021 https://github.com/python/cpython/pull/23469#ref-pullrequest-783283798
[4.6] Define create_module()/exec_module() in AssertionRewritingHook to avoid ImportWarning pytest-dev/pytest#8236 https://github.com/pytest-dev/pytest/pull/8236
adorilsonhttps://github.com/adorilson
Mar 13, 2021 https://github.com/python/cpython/pull/23469#ref-commit-827db09
https://github.com/brettcannon
https://github.com/adorilson
bpo-26131: Deprecate usage of load_module() (https://github.com/adorilson/cpython/commit/827db094ca012e301664ca1dbc43ff3664660569
pythonGH-23469https://github.com/python/cpython/pull/23469
)https://github.com/adorilson/cpython/commit/827db094ca012e301664ca1dbc43ff3664660569
827db09https://github.com/adorilson/cpython/commit/827db094ca012e301664ca1dbc43ff3664660569
https://github.com/hugovk
hugovkhttps://github.com/hugovk
Aug 16, 2022 https://github.com/python/cpython/pull/23469#ref-issue-1198854206
zipimporter find_module fullname mis-documented #52647 https://github.com/python/cpython/issues/52647
https://github.com/tomasr8
tomasr8https://github.com/tomasr8
Feb 8, 2025 https://github.com/python/cpython/pull/23469#ref-pullrequest-2840032434
gh-97850: Update the deprecation warning of importlib.abc.Loader.load_module #129855 https://github.com/python/cpython/pull/129855
https://github.com/picnixz
picnixzhttps://github.com/picnixz
May 11, 2025 https://github.com/python/cpython/pull/23469#ref-issue-3054865460
Remove deprecated importlib.load_module #133882 https://github.com/python/cpython/issues/133882
https://github.com/picnixz
picnixzhttps://github.com/picnixz
May 11, 2025https://github.com/python/cpython/pull/23469#event-17605117117
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%2F23469
https://github.com/encukou
encukou https://github.com/encukou
https://github.com/ericsnowcurrently
ericsnowcurrently https://github.com/ericsnowcurrently
https://github.com/ncoghlan
ncoghlan https://github.com/ncoghlan
https://github.com/vsajip
vsajip https://github.com/vsajip
https://github.com/warsaw
warsaw https://github.com/warsaw
Please reload this pagehttps://github.com/python/cpython/pull/23469
https://github.com/brettcannon
https://github.com/the-knights-who-say-ni
https://github.com/bedevere-bot
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.