Title: FastPath cache keeps a reference cycle which results in cyclic GC · Issue #562 · python/importlib_metadata · GitHub
Open Graph Title: FastPath cache keeps a reference cycle which results in cyclic GC · Issue #562 · python/importlib_metadata
X Title: FastPath cache keeps a reference cycle which results in cyclic GC · Issue #562 · python/importlib_metadata
Description: In 3.16 there is work to change I/O types to use managed dictionaries for a performance boost (python/cpython#161184). That effects GC order and exposed a number of unclosed file-like objects in the tests for importlib.metadata (python/c...
Open Graph Description: In 3.16 there is work to change I/O types to use managed dictionaries for a performance boost (python/cpython#161184). That effects GC order and exposed a number of unclosed file-like objects in th...
X Description: In 3.16 there is work to change I/O types to use managed dictionaries for a performance boost (python/cpython#161184). That effects GC order and exposed a number of unclosed file-like objects in th...
Opengraph URL: https://github.com/python/importlib_metadata/issues/562
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"FastPath cache keeps a reference cycle which results in cyclic GC","articleBody":"In 3.16 there is work to change I/O types to use managed dictionaries for a performance boost (https://github.com/python/cpython/issues/161184). That effects GC order and exposed a number of unclosed file-like objects in the tests for `importlib.metadata` (https://github.com/python/cpython/issues/162342).\n\nThe warning is emitted because the cyclic garbage collector picks part of the cycle to delete first. If it does the `FileIO` there is a warning. If it does ZipFile there is no warning because the ZipFile layer knows it's readonly and so no data loss is possible. Removing the cycle in the cache we can get this to have a more deterministic cleanup order that emits no warning.","author":{"url":"https://github.com/cmaloney","@type":"Person","name":"cmaloney"},"datePublished":"2026-11-21T05:26:56Z","url":"https://github.com/python/importlib_metadata/issues/562"}
| react-profiling | 0 |
| react-import-map | react,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/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ca124a8e-304b-bf86-94e8-57c9d03963fd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ED0E:21AC3F:44494BC:565C883:6B020EF7 |
| html-safe-nonce | a8ce0068f4365e084d1a50eb68cb62179b1ef0227a4b7471d8fd9408c6f7f22c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFRDBFOjIxQUMzRjo0NDQ5NEJDOjU2NUM4ODM6NkIwMjBFRjciLCJ2aXNpdG9yX2lkIjoiMzUxNDI0NTYzOTQwMjk4NDg3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 9084366618bee9a72a5bc084cee429f0640bd9d055d6a7151db1c80e1db6cb76 |
| hovercard-subject-tag | issue:6524919963 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/importlib_metadata/562/issue_layout |
| twitter:image | https://opengraph.githubassets.com/972bc2dfedd89da6d48607a383ab4a0b437d40b1033ab58f35a17851e682dd17/python/importlib_metadata/issues/562 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/972bc2dfedd89da6d48607a383ab4a0b437d40b1033ab58f35a17851e682dd17/python/importlib_metadata/issues/562 |
| og:image:alt | In 3.16 there is work to change I/O types to use managed dictionaries for a performance boost (python/cpython#161184). That effects GC order and exposed a number of unclosed file-like objects in th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | cmaloney |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/importlib_metadata git https://github.com/python/importlib_metadata.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 306448340 |
| octolytics-dimension-repository_nwo | python/importlib_metadata |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 306448340 |
| octolytics-dimension-repository_network_root_nwo | python/importlib_metadata |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width