René's URL Explorer Experiment


Title: Fix errors with multiprocessing by 2xB · Pull Request #521 · python/importlib_metadata · GitHub

Open Graph Title: Fix errors with multiprocessing by 2xB · Pull Request #521 · python/importlib_metadata

X Title: Fix errors with multiprocessing by 2xB · Pull Request #521 · python/importlib_metadata

Description: Before, one could get OSError 22 and BadZipFile errors due to re-used file pointers in forked subprocesses. This implements the fix recommended by @anntzer . Fixes #520

Open Graph Description: Before, one could get OSError 22 and BadZipFile errors due to re-used file pointers in forked subprocesses. This implements the fix recommended by @anntzer . Fixes #520

X Description: Before, one could get OSError 22 and BadZipFile errors due to re-used file pointers in forked subprocesses. This implements the fix recommended by @anntzer . Fixes #520

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

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:6857899f-8400-9747-a3c7-bbada1a6d862
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA94C:DCC88:151B0F:1C9899:696A9C02
html-safe-nonce5a2e31d30b08ab593480fe7e8de4f96111b37749f4ea57a0e7ddfdf464e4ceef
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOTRDOkRDQzg4OjE1MUIwRjoxQzk4OTk6Njk2QTlDMDIiLCJ2aXNpdG9yX2lkIjoiNDIyMjQzMDkwOTM2NjQ0MzAxMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac3444b29384fa69c94e45598e12ed4498662fa1158968e9534461d946cbe3be1a
hovercard-subject-tagpull_request:2576648487
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/521/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/323a0987c953620ba6f31de48248faf17b72f5fa68c2fd7108b8ed539727ed11/python/importlib_metadata/pull/521
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/323a0987c953620ba6f31de48248faf17b72f5fa68c2fd7108b8ed539727ed11/python/importlib_metadata/pull/521
og:image:altBefore, one could get OSError 22 and BadZipFile errors due to re-used file pointers in forked subprocesses. This implements the fix recommended by @anntzer . Fixes #520
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:username2xB
hostnamegithub.com
expected-hostnamegithub.com
Nonec0d8175e41e0e55b9e984c935b24b808cabab919dd3174aa45dac3ef503ed1af
turbo-cache-controlno-preview
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
release99aab454e5ddc8df30805fb76c114c3008a15842
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/importlib_metadata/pull/521#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fimportlib_metadata%2Fpull%2F521
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%2Fimportlib_metadata%2Fpull%2F521
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%2Fimportlib_metadata
Reloadhttps://github.com/python/importlib_metadata/pull/521
Reloadhttps://github.com/python/importlib_metadata/pull/521
Reloadhttps://github.com/python/importlib_metadata/pull/521
python https://github.com/python
importlib_metadatahttps://github.com/python/importlib_metadata
Please reload this pagehttps://github.com/python/importlib_metadata/pull/521
Notifications https://github.com/login?return_to=%2Fpython%2Fimportlib_metadata
Fork 94 https://github.com/login?return_to=%2Fpython%2Fimportlib_metadata
Star 138 https://github.com/login?return_to=%2Fpython%2Fimportlib_metadata
Code https://github.com/python/importlib_metadata
Issues 11 https://github.com/python/importlib_metadata/issues
Pull requests 3 https://github.com/python/importlib_metadata/pulls
Actions https://github.com/python/importlib_metadata/actions
Projects 0 https://github.com/python/importlib_metadata/projects
Wiki https://github.com/python/importlib_metadata/wiki
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/importlib_metadata/security
Please reload this pagehttps://github.com/python/importlib_metadata/pull/521
Insights https://github.com/python/importlib_metadata/pulse
Code https://github.com/python/importlib_metadata
Issues https://github.com/python/importlib_metadata/issues
Pull requests https://github.com/python/importlib_metadata/pulls
Actions https://github.com/python/importlib_metadata/actions
Projects https://github.com/python/importlib_metadata/projects
Wiki https://github.com/python/importlib_metadata/wiki
Security https://github.com/python/importlib_metadata/security
Insights https://github.com/python/importlib_metadata/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fimportlib_metadata%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fimportlib_metadata%2Fissues%2Fnew%2Fchoose
Jump to bottomhttps://github.com/python/importlib_metadata/pull/521#issue-comment-box
jaracohttps://github.com/jaraco
python:mainhttps://github.com/python/importlib_metadata/tree/main
2xB:fix520https://github.com/2xB/importlib_metadata/tree/fix520
Fix errors with multiprocessing https://github.com/python/importlib_metadata/pull/521#top
jaracohttps://github.com/jaraco
python:mainhttps://github.com/python/importlib_metadata/tree/main
2xB:fix520https://github.com/2xB/importlib_metadata/tree/fix520
Conversation 3 https://github.com/python/importlib_metadata/pull/521
Commits 11 https://github.com/python/importlib_metadata/pull/521/commits
Checks 15 https://github.com/python/importlib_metadata/pull/521/checks
Files changed 4 https://github.com/python/importlib_metadata/pull/521/files
https://github.co/hiddenchars
https://github.com/python/importlib_metadata/pull/{{ revealButtonHref }}
https://github.com/2xB
2xBhttps://github.com/2xB
Jun 8, 2025https://github.com/python/importlib_metadata/pull/521#issue-3128313178
Please reload this pagehttps://github.com/python/importlib_metadata/pull/521
@anntzerhttps://github.com/anntzer
#520https://github.com/python/importlib_metadata/issues/520
Please reload this pagehttps://github.com/python/importlib_metadata/pull/521
https://github.com/2xB
2xBhttps://github.com/2xB
Aug 22, 2025 https://github.com/python/importlib_metadata/pull/521#ref-issue-3124859353
Issues when combined with multiprocessing (MaybeEncodingError, BadZipFile, OSError) #520 https://github.com/python/importlib_metadata/issues/520
https://github.com/jaraco
jaracohttps://github.com/jaraco
Nov 22, 2025 https://github.com/python/importlib_metadata/pull/521#pullrequestreview-3496836286
View reviewed changes https://github.com/python/importlib_metadata/pull/521/files
jaracohttps://github.com/jaraco
https://github.com/python/importlib_metadata/pull/521#pullrequestreview-3496836286
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/importlib_metadata/pull/521
https://github.com/jaraco
jaracohttps://github.com/jaraco
Copilothttps://github.com/apps/copilot-swe-agent
Nov 22, 2025https://github.com/python/importlib_metadata/pull/521#event-21115988790
https://github.com/2xB
2xBhttps://github.com/2xB
Nov 26, 2025https://github.com/python/importlib_metadata/pull/521#issuecomment-3581920876
Please reload this pagehttps://github.com/python/importlib_metadata/pull/521
@jaracohttps://github.com/jaraco
Please reload this pagehttps://github.com/python/importlib_metadata/pull/521
https://github.com/jaraco
jaracohttps://github.com/jaraco
Dec 20, 2025https://github.com/python/importlib_metadata/pull/521#issuecomment-3677966782
@jaracohttps://github.com/jaraco
Please reload this pagehttps://github.com/python/importlib_metadata/pull/521
https://github.com/jaraco
jaracohttps://github.com/jaraco
force-pushedhttps://github.com/python/importlib_metadata/compare/2c8f1715102c8647f5d08aae8ff77599161bf551..64a927f100f4076c98d05168621714be95a579c4
2c8f171https://github.com/python/importlib_metadata/commit/2c8f1715102c8647f5d08aae8ff77599161bf551
64a927fhttps://github.com/python/importlib_metadata/commit/64a927f100f4076c98d05168621714be95a579c4
Compare https://github.com/python/importlib_metadata/compare/2c8f1715102c8647f5d08aae8ff77599161bf551..64a927f100f4076c98d05168621714be95a579c4
December 21, 2025 08:35https://github.com/python/importlib_metadata/pull/521#event-21689189839
2xBhttps://github.com/2xB
December 21, 2025 04:08https://github.com/python/importlib_metadata/pull/521#commits-pushed-cbc721b
https://github.com/2xB
https://github.com/jaraco
Fix errors with multiprocessinghttps://github.com/python/importlib_metadata/pull/521/commits/cbc721bfacd0ce396dba55235703525a8feaf0ac
cbc721bhttps://github.com/python/importlib_metadata/pull/521/commits/cbc721bfacd0ce396dba55235703525a8feaf0ac
python#520https://github.com/python/importlib_metadata/issues/520
https://github.com/jaraco
Added decorator to encapsulate the fork multiprocessing workaround.https://github.com/python/importlib_metadata/pull/521/commits/339d7a57c7190d462c81ee12e60875c69d60f925
339d7a5https://github.com/python/importlib_metadata/pull/521/commits/339d7a57c7190d462c81ee12e60875c69d60f925
https://github.com/jaraco
Add test capturing missed expectation.https://github.com/python/importlib_metadata/pull/521/commits/104265b037f8994588992ebfbdd316cc78e3d457
104265bhttps://github.com/python/importlib_metadata/pull/521/commits/104265b037f8994588992ebfbdd316cc78e3d457
https://github.com/jaraco
Allow initial currsize to be greater than one (as happens when runnin…https://github.com/python/importlib_metadata/pull/521/commits/6a30ab96290b18c0b9805268a201ca5011c1feae
6a30ab9https://github.com/python/importlib_metadata/pull/521/commits/6a30ab96290b18c0b9805268a201ca5011c1feae
https://github.com/jaraco
👹 Feed the hobgoblins (delint).https://github.com/python/importlib_metadata/pull/521/commits/4e962a8498990ba82120e7a58ce71abedefa0003
4e962a8https://github.com/python/importlib_metadata/pull/521/commits/4e962a8498990ba82120e7a58ce71abedefa0003
https://github.com/jaraco
🧎‍♀️ Genuflect to the types.https://github.com/python/importlib_metadata/pull/521/commits/a1c25d8f2dc50abec65e4cf6d733b15d73c2f3b1
a1c25d8https://github.com/python/importlib_metadata/pull/521/commits/a1c25d8f2dc50abec65e4cf6d733b15d73c2f3b1
https://github.com/jaraco
jaracohttps://github.com/jaraco
force-pushedhttps://github.com/python/importlib_metadata/compare/64a927f100f4076c98d05168621714be95a579c4..a1c25d8f2dc50abec65e4cf6d733b15d73c2f3b1
64a927fhttps://github.com/python/importlib_metadata/commit/64a927f100f4076c98d05168621714be95a579c4
a1c25d8https://github.com/python/importlib_metadata/commit/a1c25d8f2dc50abec65e4cf6d733b15d73c2f3b1
Compare https://github.com/python/importlib_metadata/compare/64a927f100f4076c98d05168621714be95a579c4..a1c25d8f2dc50abec65e4cf6d733b15d73c2f3b1
December 21, 2025 09:08https://github.com/python/importlib_metadata/pull/521#event-21689311003
https://github.com/jaraco
Add news fragment.https://github.com/python/importlib_metadata/pull/521/commits/1da3f456ab53832fd6e1236f2338388d9ea0b0c6
1da3f45https://github.com/python/importlib_metadata/pull/521/commits/1da3f456ab53832fd6e1236f2338388d9ea0b0c6
https://github.com/jaraco
jaracohttps://github.com/jaraco
Dec 21, 2025 https://github.com/python/importlib_metadata/pull/521#pullrequestreview-3601610744
View reviewed changes https://github.com/python/importlib_metadata/pull/521/files/1da3f456ab53832fd6e1236f2338388d9ea0b0c6
jaracohttps://github.com/jaraco
December 21, 2025 04:17https://github.com/python/importlib_metadata/pull/521#commits-pushed-8dd2937
https://github.com/jaraco
Decouple clear_after_fork from lru_cache and then compose.https://github.com/python/importlib_metadata/pull/521/commits/8dd2937cf852eb0d9ad96d4e45ed3470e80c1463
8dd2937https://github.com/python/importlib_metadata/pull/521/commits/8dd2937cf852eb0d9ad96d4e45ed3470e80c1463
https://github.com/jaraco
Avoid if block.https://github.com/python/importlib_metadata/pull/521/commits/a36bab926643dcd67513851d5bebc285ef9ac681
a36bab9https://github.com/python/importlib_metadata/pull/521/commits/a36bab926643dcd67513851d5bebc285ef9ac681
https://github.com/jaraco
Prefer noop for degenerate behavior.https://github.com/python/importlib_metadata/pull/521/commits/3c9510bf848fd4031e76028da0c9f60129047546
3c9510bhttps://github.com/python/importlib_metadata/pull/521/commits/3c9510bf848fd4031e76028da0c9f60129047546
https://github.com/jaraco
Rely on passthrough to designate a wrapper for its side effect.https://github.com/python/importlib_metadata/pull/521/commits/f6eee5671a3e9e1cb56a6d3a6219145c19518713
f6eee56https://github.com/python/importlib_metadata/pull/521/commits/f6eee5671a3e9e1cb56a6d3a6219145c19518713
https://github.com/jaraco
jaracohttps://github.com/jaraco
36ed6f6https://github.com/python/importlib_metadata/commit/36ed6f69888bba8cbabd3963714630ead6bdb762
Dec 21, 2025https://github.com/python/importlib_metadata/pull/521#event-21689469772
Please reload this pagehttps://github.com/python/importlib_metadata/pull/521
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%2F521
https://github.com/jaraco
jaraco https://github.com/jaraco
https://github.com/python/importlib_metadata/pull/521/files/1da3f456ab53832fd6e1236f2338388d9ea0b0c6
Copilot code review https://github.com/apps/copilot-swe-agent
Copilot https://github.com/apps/copilot-swe-agent
Issues when combined with multiprocessing (MaybeEncodingError, BadZipFile, OSError) https://github.com/python/importlib_metadata/issues/520
Please reload this pagehttps://github.com/python/importlib_metadata/pull/521
https://github.com/2xB
https://github.com/jaraco
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.