René's URL Explorer Experiment


Title: gh-97930: Apply changes from importlib_resources 5.10. by jaraco · Pull Request #100598 · python/cpython · GitHub

Open Graph Title: gh-97930: Apply changes from importlib_resources 5.10. by jaraco · Pull Request #100598 · python/cpython

X Title: gh-97930: Apply changes from importlib_resources 5.10. by jaraco · Pull Request #100598 · python/cpython

Description: Previous sync with 5.9 was #97929. Changes are described here: #203: Lifted restriction on modules passed to files. Now modules need not be a package and if a non-package module is passed, resources will be resolved adjacent to those modules, even for modules not found in any package. For example, files(import_module('mod.py')) will resolve resources found at the root. The parameter to files was renamed from ‘package’ to ‘anchor’, with a compatibility shim for those passing by keyword. #259: files no longer requires the anchor to be specified and can infer the anchor from the caller’s scope (defaults to the caller’s module). These changes have been released for several months with no reported concerns. Issue: gh-97930

Open Graph Description: Previous sync with 5.9 was #97929. Changes are described here: #203: Lifted restriction on modules passed to files. Now modules need not be a package and if a non-package module is passed, resourc...

X Description: Previous sync with 5.9 was #97929. Changes are described here: #203: Lifted restriction on modules passed to files. Now modules need not be a package and if a non-package module is passed, resourc...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:4d7d36d3-64d9-d3c6-dcd6-e593a7ccb4e4
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idAE3A:1AB621:419831:5885BE:6969DD39
html-safe-nonce1e4017ddc9a618f3ab9083db8119acdac4b281917e8505daef733ca160c2d82b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRTNBOjFBQjYyMTo0MTk4MzE6NTg4NUJFOjY5NjlERDM5IiwidmlzaXRvcl9pZCI6IjI0NTc2MzY4MDE3MTk0MjYzNjEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac2ee3a6dc95180afd3ad059f3a1b306df1756a217d006b0b37fc2cc401725b34c
hovercard-subject-tagpull_request:1179891848
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/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/100598/files
twitter:imagehttps://avatars.githubusercontent.com/u/308610?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/308610?s=400&v=4
og:image:altPrevious sync with 5.9 was #97929. Changes are described here: #203: Lifted restriction on modules passed to files. Now modules need not be a package and if a non-package module is passed, resourc...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None7b32f1c7c4549428ee399213e8345494fc55b5637195d3fc5f493657579235e8
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasebdde15ad1b403e23b08bbd89b53fbe6bdf688cad
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/100598/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F100598%2Ffiles
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%2F100598%2Ffiles
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%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/100598/files
Reloadhttps://github.com/python/cpython/pull/100598/files
Reloadhttps://github.com/python/cpython/pull/100598/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/100598/files
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/100598/files
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
jaracohttps://github.com/jaraco
python:mainhttps://github.com/python/cpython/tree/main
jaraco:feature/importlib-resources-5.10https://github.com/jaraco/cpython/tree/feature/importlib-resources-5.10
Conversation 6 https://github.com/python/cpython/pull/100598
Commits 4 https://github.com/python/cpython/pull/100598/commits
Checks 0 https://github.com/python/cpython/pull/100598/checks
Files changed https://github.com/python/cpython/pull/100598/files
Please reload this pagehttps://github.com/python/cpython/pull/100598/files
gh-97930: Apply changes from importlib_resources 5.10. https://github.com/python/cpython/pull/100598/files#top
Show all changes 4 commits https://github.com/python/cpython/pull/100598/files
726f8dd Apply changes from importlib_resources 5.10. jaraco Dec 29, 2022 https://github.com/python/cpython/pull/100598/commits/726f8dd9bbb57257a41afb5867b1903bc923c64d
9f533cb Add blurb jaraco Dec 29, 2022 https://github.com/python/cpython/pull/100598/commits/9f533cbf99a3c32f06b493a489471657bfafb20c
81c3c5e Update documentation to match the implementation with Anchor object b… jaraco Dec 29, 2022 https://github.com/python/cpython/pull/100598/commits/81c3c5ec718028e573467aa13adb34d5557421f4
1637ad4 Restore _adapters to prior state. jaraco Dec 29, 2022 https://github.com/python/cpython/pull/100598/commits/1637ad48b50afba42a0e9074821511a526d1818c
Clear filters https://github.com/python/cpython/pull/100598/files
Please reload this pagehttps://github.com/python/cpython/pull/100598/files
Please reload this pagehttps://github.com/python/cpython/pull/100598/files
importlib.resources.rst https://github.com/python/cpython/pull/100598/files#diff-4a42a161a9dd21fab411f838ee23088c918a73334a58f1251f2da8a6715c3e36
_common.py https://github.com/python/cpython/pull/100598/files#diff-9181c6cb24e7bc2b5ff7451ec45cdd6223c021cac852b7c369e80ee7344de628
_legacy.py https://github.com/python/cpython/pull/100598/files#diff-864f25baa2abe2abf981002aa6965bff4276bb8b7e3b233ddf10e53079e818bf
abc.py https://github.com/python/cpython/pull/100598/files#diff-7959ca0f7ad823a03f36c5386eeeee64f4f6a6b1b9f4dcaaef28413e51ce3376
simple.py https://github.com/python/cpython/pull/100598/files#diff-2e0a04eed2da3b2578b05b4f31dcde03f940997ed0513aa8ba9f4da60f27b777
_path.py https://github.com/python/cpython/pull/100598/files#diff-995d7e485f4bf1c5391858c70ab67dd29d10f52761c629653c00b1fb936817da
test_files.py https://github.com/python/cpython/pull/100598/files#diff-0051865e2bc0264a9c1dc21c0751252a230b06a0a2a0d77a250711589bdcf206
util.py https://github.com/python/cpython/pull/100598/files#diff-91b11c132de85f001ea02f74b8e21a2f3e6c37d85a1a370e7b399505e6ec3601
2022-12-29-11-45-22.gh-issue-97930.hrtmJe.rst https://github.com/python/cpython/pull/100598/files#diff-ba3967aef160a42262afc7103f879e7ed984c4e303c23dd8b6bce8bf3b3850dc
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L503
Doc/library/importlib.resources.rsthttps://github.com/python/cpython/pull/100598/files#diff-4a42a161a9dd21fab411f838ee23088c918a73334a58f1251f2da8a6715c3e36
View file https://github.com/jaraco/cpython/blob/1637ad48b50afba42a0e9074821511a526d1818c/Doc/library/importlib.resources.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/100598/{{ revealButtonHref }}
https://github.com/python/cpython/pull/100598/files#diff-4a42a161a9dd21fab411f838ee23088c918a73334a58f1251f2da8a6715c3e36
https://github.com/python/cpython/pull/100598/files#diff-4a42a161a9dd21fab411f838ee23088c918a73334a58f1251f2da8a6715c3e36
https://github.com/python/cpython/pull/100598/files#diff-4a42a161a9dd21fab411f838ee23088c918a73334a58f1251f2da8a6715c3e36
https://github.com/python/cpython/pull/100598/files#diff-4a42a161a9dd21fab411f838ee23088c918a73334a58f1251f2da8a6715c3e36
https://github.com/python/cpython/pull/100598/files#diff-4a42a161a9dd21fab411f838ee23088c918a73334a58f1251f2da8a6715c3e36
https://github.com/python/cpython/pull/100598/files#diff-4a42a161a9dd21fab411f838ee23088c918a73334a58f1251f2da8a6715c3e36
https://github.com/python/cpython/pull/100598/files#diff-4a42a161a9dd21fab411f838ee23088c918a73334a58f1251f2da8a6715c3e36
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L504
Lib/importlib/resources/_common.pyhttps://github.com/python/cpython/pull/100598/files#diff-9181c6cb24e7bc2b5ff7451ec45cdd6223c021cac852b7c369e80ee7344de628
View file https://github.com/jaraco/cpython/blob/1637ad48b50afba42a0e9074821511a526d1818c/Lib/importlib/resources/_common.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/100598/{{ revealButtonHref }}
https://github.com/python/cpython/pull/100598/files#diff-9181c6cb24e7bc2b5ff7451ec45cdd6223c021cac852b7c369e80ee7344de628
https://github.com/python/cpython/pull/100598/files#diff-9181c6cb24e7bc2b5ff7451ec45cdd6223c021cac852b7c369e80ee7344de628
https://github.com/python/cpython/pull/100598/files#diff-9181c6cb24e7bc2b5ff7451ec45cdd6223c021cac852b7c369e80ee7344de628
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L504
Lib/importlib/resources/_legacy.pyhttps://github.com/python/cpython/pull/100598/files#diff-864f25baa2abe2abf981002aa6965bff4276bb8b7e3b233ddf10e53079e818bf
View file https://github.com/jaraco/cpython/blob/1637ad48b50afba42a0e9074821511a526d1818c/Lib/importlib/resources/_legacy.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/100598/{{ revealButtonHref }}
https://github.com/python/cpython/pull/100598/files#diff-864f25baa2abe2abf981002aa6965bff4276bb8b7e3b233ddf10e53079e818bf
https://github.com/python/cpython/pull/100598/files#diff-864f25baa2abe2abf981002aa6965bff4276bb8b7e3b233ddf10e53079e818bf
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L504
Lib/importlib/resources/abc.pyhttps://github.com/python/cpython/pull/100598/files#diff-7959ca0f7ad823a03f36c5386eeeee64f4f6a6b1b9f4dcaaef28413e51ce3376
View file https://github.com/jaraco/cpython/blob/1637ad48b50afba42a0e9074821511a526d1818c/Lib/importlib/resources/abc.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/100598/{{ revealButtonHref }}
https://github.com/python/cpython/pull/100598/files#diff-7959ca0f7ad823a03f36c5386eeeee64f4f6a6b1b9f4dcaaef28413e51ce3376
https://github.com/python/cpython/pull/100598/files#diff-7959ca0f7ad823a03f36c5386eeeee64f4f6a6b1b9f4dcaaef28413e51ce3376
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L504
Lib/importlib/resources/simple.pyhttps://github.com/python/cpython/pull/100598/files#diff-2e0a04eed2da3b2578b05b4f31dcde03f940997ed0513aa8ba9f4da60f27b777
View file https://github.com/jaraco/cpython/blob/1637ad48b50afba42a0e9074821511a526d1818c/Lib/importlib/resources/simple.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/100598/{{ revealButtonHref }}
https://github.com/python/cpython/pull/100598/files#diff-2e0a04eed2da3b2578b05b4f31dcde03f940997ed0513aa8ba9f4da60f27b777
https://github.com/python/cpython/pull/100598/files#diff-2e0a04eed2da3b2578b05b4f31dcde03f940997ed0513aa8ba9f4da60f27b777
https://github.com/python/cpython/pull/100598/files#diff-2e0a04eed2da3b2578b05b4f31dcde03f940997ed0513aa8ba9f4da60f27b777
https://github.com/python/cpython/pull/100598/files#diff-2e0a04eed2da3b2578b05b4f31dcde03f940997ed0513aa8ba9f4da60f27b777
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L505
Lib/test/test_importlib/resources/_path.pyhttps://github.com/python/cpython/pull/100598/files#diff-995d7e485f4bf1c5391858c70ab67dd29d10f52761c629653c00b1fb936817da
View file https://github.com/jaraco/cpython/blob/1637ad48b50afba42a0e9074821511a526d1818c/Lib/test/test_importlib/resources/_path.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/100598/{{ revealButtonHref }}
Please reload this pagehttps://github.com/python/cpython/pull/100598/files
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.