René's URL Explorer Experiment


Title: Close zip files on sys.path when the path cache is cleared. by cmaloney · Pull Request #563 · python/importlib_metadata · GitHub

Open Graph Title: Close zip files on sys.path when the path cache is cleared. by cmaloney · Pull Request #563 · python/importlib_metadata

X Title: Close zip files on sys.path when the path cache is cleared. by cmaloney · Pull Request #563 · python/importlib_metadata

Description: Library to access metadata for Python packages. Contribute to python/importlib_metadata development by creating an account on GitHub.

Open Graph Description: Reference cycles kept each zip's open ZipFile alive until the cyclic garbage collector ran, which could emit a ResourceWarning depending on finalization order. Stop storing self in freeze() an...

X Description: Reference cycles kept each zip's open ZipFile alive until the cyclic garbage collector ran, which could emit a ResourceWarning depending on finalization order. Stop storing self in freeze(...

Opengraph URL: https://github.com/python/importlib_metadata/pull/563

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:4a2a6dff-cddb-e090-08ad-b4635014b746
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idAB6E:33444D:377DA09:49BE26A:6B0211DD
html-safe-nonce8ebd67c4a9a13221599e30783d984659ec84e23c96b3c84d8057c3316feb5ce5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQjZFOjMzNDQ0RDozNzdEQTA5OjQ5QkUyNkE6NkIwMjExREQiLCJ2aXNpdG9yX2lkIjoiMTcyNjk4ODE5OTk2MjkxNTQ5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac05163e1ee05e760879c10dda179851d3ad013f878656d405dd7cf42a15565ac7
hovercard-subject-tagpull_request:5424791583
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/importlib_metadata/563/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/0f75655463e04e90c5e036dbcefdd9e3df537aed3db75ddcfb5553d8ea22a3cb/python/importlib_metadata/pull/563
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/0f75655463e04e90c5e036dbcefdd9e3df537aed3db75ddcfb5553d8ea22a3cb/python/importlib_metadata/pull/563
og:image:altReference cycles kept each zip's open ZipFile alive until the cyclic garbage collector ran, which could emit a ResourceWarning depending on finalization order. Stop storing self in freeze() an...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamecmaloney
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-cache
go-importgithub.com/python/importlib_metadata git https://github.com/python/importlib_metadata.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id306448340
octolytics-dimension-repository_nwopython/importlib_metadata
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id306448340
octolytics-dimension-repository_network_root_nwopython/importlib_metadata
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/importlib_metadata/pull/563#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fimportlib_metadata%2Fpull%2F563
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%2Fimportlib_metadata%2Fpull%2F563
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%2Fimportlib_metadata
Reloadhttps://github.com/python/importlib_metadata/pull/563
Reloadhttps://github.com/python/importlib_metadata/pull/563
Reloadhttps://github.com/python/importlib_metadata/pull/563
pythonhttps://github.com/python
importlib_metadatahttps://github.com/python/importlib_metadata
Codehttps://github.com/python/importlib_metadata
Issues9 (9)https://github.com/python/importlib_metadata/issues
Pull requests7 (7)https://github.com/python/importlib_metadata/pulls
Actionshttps://github.com/python/importlib_metadata/actions
Projectshttps://github.com/python/importlib_metadata/projects
Wikihttps://github.com/python/importlib_metadata/wiki
Security and qualityhttps://github.com/python/importlib_metadata/security
Insightshttps://github.com/python/importlib_metadata/insights
https://github.com/python/importlib_metadata
cmaloneyhttps://github.com/cmaloney
python:mainhttps://github.com/python/importlib_metadata/tree/main
cmaloney:bugfix/cpython-162342-zip-cycleshttps://github.com/cmaloney/importlib_metadata/tree/bugfix/cpython-162342-zip-cycles
Conversationhttps://github.com/python/importlib_metadata/pull/563
Commits3 (3)https://github.com/python/importlib_metadata/pull/563/commits
Checkshttps://github.com/python/importlib_metadata/pull/563/checks
Files changedhttps://github.com/python/importlib_metadata/pull/563/files
Close zip files on sys.path when the path cache is cleared.https://github.com/python/importlib_metadata/pull/563#top
cmaloneyhttps://github.com/cmaloney
python:mainhttps://github.com/python/importlib_metadata/tree/main
cmaloney:bugfix/cpython-162342-zip-cycleshttps://github.com/cmaloney/importlib_metadata/tree/bugfix/cpython-162342-zip-cycles
https://github.com/cmaloney
cmaloneyhttps://github.com/cmaloney
Nov 21, 2026https://github.com/python/importlib_metadata/pull/563#issue-6525106981
#562https://github.com/python/importlib_metadata/issues/562
Please reload this pagehttps://github.com/python/importlib_metadata/pull/563
cmaloneyhttps://github.com/cmaloney
November 20, 2026 21:39https://github.com/python/importlib_metadata/pull/563#commits-pushed-f4e9415
https://github.com/cmaloney
https://github.com/claude
Close zip files on sys.path when the path cache is cleared.https://github.com/python/importlib_metadata/pull/563/commits/f4e9415b10ce99dcbfdff320dc45cb668ad499f2
f4e9415https://github.com/python/importlib_metadata/pull/563/commits/f4e9415b10ce99dcbfdff320dc45cb668ad499f2
python#562https://github.com/python/importlib_metadata/issues/562
https://github.com/cmaloney
https://github.com/claude
Skip the zip close test on non-refcounting implementations.https://github.com/python/importlib_metadata/pull/563/commits/4b0f35fc172dc5a2d06cb7cb385288c6ff378554
4b0f35fhttps://github.com/python/importlib_metadata/pull/563/commits/4b0f35fc172dc5a2d06cb7cb385288c6ff378554
https://github.com/cmaloney
cmaloneyhttps://github.com/cmaloney
Nov 21, 2026 https://github.com/python/importlib_metadata/pull/563#pullrequestreview-6003613399
View reviewed changes https://github.com/python/importlib_metadata/pull/563/files/4b0f35fc172dc5a2d06cb7cb385288c6ff378554
tests/test_zip.pyhttps://github.com/python/importlib_metadata/pull/563/files/4b0f35fc172dc5a2d06cb7cb385288c6ff378554#diff-35dca603fa0488671f5e4f3dbd37f4225606c1cbf6331e578d44b8e83e61cf26
Please reload this pagehttps://github.com/python/importlib_metadata/pull/563
https://github.com/cmaloney
Apply suggestion fromhttps://github.com/python/importlib_metadata/pull/563/commits/91df36c4cceb338fc63e1769e3c42b2a8ede749e
@cmaloneyhttps://github.com/cmaloney
91df36chttps://github.com/python/importlib_metadata/pull/563/commits/91df36c4cceb338fc63e1769e3c42b2a8ede749e
https://github.co/hiddenchars
https://github.com/python/importlib_metadata/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%2Fimportlib_metadata%2Fpull%2F563
Please reload this pagehttps://github.com/python/importlib_metadata/pull/563
FastPath cache keeps a reference cycle which results in cyclic GC https://github.com/python/importlib_metadata/issues/562
Please reload this pagehttps://github.com/python/importlib_metadata/pull/563
https://github.com/cmaloney
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.