René's URL Explorer Experiment


Title: Update concurrent.futures for Python 3.14 by 1ndahous3 · Pull Request #8904 · RustPython/RustPython · GitHub

Open Graph Title: Update concurrent.futures for Python 3.14 by 1ndahous3 · Pull Request #8904 · RustPython/RustPython

X Title: Update concurrent.futures for Python 3.14 by 1ndahous3 · Pull Request #8904 · RustPython/RustPython

Description: Summary Port concurrent.futures from CPython 3.14.6, including InterpreterPoolExecutor, bounded Executor.map(buffersize=...), and ProcessPoolExecutor.terminate_workers() / kill_workers(). Fix subinterpreter shutdown hanging when a worker thread runs finalizers or weakref callbacks. Track the thread performing finalization separately from the process main thread. Restore script-defined functions against a cached, isolated __main__ namespace. Preserve worker globals between calls without replacing the interpreter's actual __main__ module during unpickling. Performance Windows 11 x64 Mapping 2,000 inputs of 16 KiB with one blocked worker; median of three runs: At submission Unbounded map buffersize=32 Inputs consumed 2,000 32 Process private-memory increase 14.5 MiB 0.07 MiB Related changes Automatic-GC request ownership and generation-counter reset races between interpreters are fixed separately in #8902. Known limitations Explicit import __main__ inside an unpickling callback sees the interpreter's actual module. CPython temporarily exposes its isolated module during its fallback. AI assistance Written with Codex (GPT-6), reviewed by a human before submission. This PR follows our AI policy. Summary by CodeRabbit Bug Fixes Improved transfer of serialized values between isolated interpreters when they depend on definitions from a script’s main namespace. Fixed a threaded interpreter shutdown issue that could leave a worker thread waiting indefinitely. Improved isolation of script globals across interpreter pool workers.

Open Graph Description: Summary Port concurrent.futures from CPython 3.14.6, including InterpreterPoolExecutor, bounded Executor.map(buffersize=...), and ProcessPoolExecutor.terminate_workers() / kill_workers(). Fix subi...

X Description: Summary Port concurrent.futures from CPython 3.14.6, including InterpreterPoolExecutor, bounded Executor.map(buffersize=...), and ProcessPoolExecutor.terminate_workers() / kill_workers(). Fix subi...

Opengraph URL: https://github.com/RustPython/RustPython/pull/8904

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/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:e2c6b56b-0dbc-2dec-78c6-5460b5086ac6
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id934E:BB75:1473D79:1B18FB0:6B01F9FC
html-safe-nonce61469a2478ce17f7f0e4b756f14d9c359f28d79c0285c41d1f0abdd9aa9b8c59
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MzRFOkJCNzU6MTQ3M0Q3OToxQjE4RkIwOjZCMDFGOUZDIiwidmlzaXRvcl9pZCI6IjM5NTM1NjI5MDI5NDE3OTI3NjQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac971b53d11a1a90f2d1b71b6d043e89ac74ab17a8f7e55102369d90d1ecbfb262
hovercard-subject-tagpull_request:4677989224
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/RustPython/RustPython/pull/8904/files
twitter:imagehttps://avatars.githubusercontent.com/u/9205230?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/9205230?s=400&v=4
og:image:altSummary Port concurrent.futures from CPython 3.14.6, including InterpreterPoolExecutor, bounded Executor.map(buffersize=...), and ProcessPoolExecutor.terminate_workers() / kill_workers(). Fix subi...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git
octolytics-dimension-user_id39710557
octolytics-dimension-user_loginRustPython
octolytics-dimension-repository_id135201145
octolytics-dimension-repository_nwoRustPython/RustPython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id135201145
octolytics-dimension-repository_network_root_nwoRustPython/RustPython
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
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/RustPython/RustPython/pull/8904/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F8904%2Ffiles
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%2FRustPython%2FRustPython%2Fpull%2F8904%2Ffiles
Sign uphttps://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=RustPython%2FRustPython
Reloadhttps://github.com/RustPython/RustPython/pull/8904/files
Reloadhttps://github.com/RustPython/RustPython/pull/8904/files
Reloadhttps://github.com/RustPython/RustPython/pull/8904/files
RustPythonhttps://github.com/RustPython
RustPythonhttps://github.com/RustPython/RustPython
Codehttps://github.com/RustPython/RustPython
Issues195 (195)https://github.com/RustPython/RustPython/issues
Pull requests133 (133)https://github.com/RustPython/RustPython/pulls
Discussionshttps://github.com/RustPython/RustPython/discussions
Actionshttps://github.com/RustPython/RustPython/actions
Projectshttps://github.com/RustPython/RustPython/projects
Wikihttps://github.com/RustPython/RustPython/wiki
Security and qualityhttps://github.com/RustPython/RustPython/security
Insightshttps://github.com/RustPython/RustPython/insights
Sign up for GitHub https://github.com/signup?return_to=%2FRustPython%2FRustPython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FRustPython%2FRustPython%2Fissues%2Fnew%2Fchoose
youknowonehttps://github.com/youknowone
RustPython:mainhttps://github.com/RustPython/RustPython/tree/main
1ndahous3:concurrent_futures_refreshhttps://github.com/1ndahous3/RustPython/tree/concurrent_futures_refresh
Conversation 9 https://github.com/RustPython/RustPython/pull/8904
Commits 2 https://github.com/RustPython/RustPython/pull/8904/commits
Checks 29 https://github.com/RustPython/RustPython/pull/8904/checks
Files changed https://github.com/RustPython/RustPython/pull/8904/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/8904/files
Update concurrent.futures for Python 3.14 https://github.com/RustPython/RustPython/pull/8904/files#top
Show all changes 2 commits https://github.com/RustPython/RustPython/pull/8904/files
889e0a7 Update concurrent.futures for Python 3.14 1ndahous3 Sep 29, 2026 https://github.com/RustPython/RustPython/pull/8904/commits/889e0a73f064dd5add296c180a76f3005b94afca
06d84ec Enable relative import completion test 1ndahous3 Sep 29, 2026 https://github.com/RustPython/RustPython/pull/8904/commits/06d84ec7cca19cc9cf3f4d25347e82bae7fdc2aa
Clear filters https://github.com/RustPython/RustPython/pull/8904/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/8904/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/8904/files
__init__.py https://github.com/RustPython/RustPython/pull/8904/files#diff-609d2c26b0008c22487a827ac7eabfc50f26d8cae9b80120fc9ee7ca6aac2d73
_base.py https://github.com/RustPython/RustPython/pull/8904/files#diff-8aedf542fe72b757331790df03cf4b18b143ee45871a70dd5118846a93199017
interpreter.py https://github.com/RustPython/RustPython/pull/8904/files#diff-2418446f6b32195bf39c0f315ac97d47108a451144cc0132a88a7c7997966417
process.py https://github.com/RustPython/RustPython/pull/8904/files#diff-84a955ea642d41d9f164e9f94499d8eb33c357ec7f4362a341951f6f67ab21a1
thread.py https://github.com/RustPython/RustPython/pull/8904/files#diff-692c518556397eee9681b886c6c7e85af5defbd0759a01f0f39c355d48d1fd75
datetimetester.py https://github.com/RustPython/RustPython/pull/8904/files#diff-917d5d1d1423993f37a643afa9f2a2f9caa3c0f91e06c0d7ebea1b879d53b4ef
executor.py https://github.com/RustPython/RustPython/pull/8904/files#diff-e5b0be40e74f63f5043e0764793838ebc2519bc51656d5c7b6427881c0043e68
test_interpreter_pool.py https://github.com/RustPython/RustPython/pull/8904/files#diff-ce4a80e80ac2d575f5bf0f9ae58c449a24b689b9db7b776df2a5a944e78ee88b
test_process_pool.py https://github.com/RustPython/RustPython/pull/8904/files#diff-ceb3c61e8d982ca1de088c471618cc635c2660f42a53af0902cad78d6dffacfc
util.py https://github.com/RustPython/RustPython/pull/8904/files#diff-2b810d336a7fd03d8400964bfa06bcdb8299cfd0b28f4be880d703513e7e0150
test_pyrepl.py https://github.com/RustPython/RustPython/pull/8904/files#diff-527def17e95277d68de9ccbef2358e5b89aba5407163ff8d0777936bb3f3bfab
crossinterp.rs https://github.com/RustPython/RustPython/pull/8904/files#diff-265514b24c44d971d322829fb7a4344e34449bb4befecf4eb3d7e48c132d902e
interpreter.rs https://github.com/RustPython/RustPython/pull/8904/files#diff-2361f366cc46771907dbd3b09eb8b9c839e7f059710345f2265c1753862a1b20
mod.rs https://github.com/RustPython/RustPython/pull/8904/files#diff-fe30ecf7c6b462e46e0874a55a05ea0edba83cefad5ac7a86e7137fa8f86ba74
stdlib_subinterpreters.py https://github.com/RustPython/RustPython/pull/8904/files#diff-f71d3b6dab48fe4cca5dccb28f6026c51037953966f9013c0e1fb018b7a17326
Lib/concurrent/futures/__init__.pyhttps://github.com/RustPython/RustPython/pull/8904/files#diff-609d2c26b0008c22487a827ac7eabfc50f26d8cae9b80120fc9ee7ca6aac2d73
View file https://github.com/1ndahous3/RustPython/blob/06d84ec7cca19cc9cf3f4d25347e82bae7fdc2aa/Lib/concurrent/futures/__init__.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/8904/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/8904/files#diff-609d2c26b0008c22487a827ac7eabfc50f26d8cae9b80120fc9ee7ca6aac2d73
https://github.com/RustPython/RustPython/pull/8904/files#diff-609d2c26b0008c22487a827ac7eabfc50f26d8cae9b80120fc9ee7ca6aac2d73
Lib/concurrent/futures/_base.pyhttps://github.com/RustPython/RustPython/pull/8904/files#diff-8aedf542fe72b757331790df03cf4b18b143ee45871a70dd5118846a93199017
View file https://github.com/1ndahous3/RustPython/blob/06d84ec7cca19cc9cf3f4d25347e82bae7fdc2aa/Lib/concurrent/futures/_base.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/8904/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/8904/files#diff-8aedf542fe72b757331790df03cf4b18b143ee45871a70dd5118846a93199017
https://github.com/RustPython/RustPython/pull/8904/files#diff-8aedf542fe72b757331790df03cf4b18b143ee45871a70dd5118846a93199017
https://github.com/RustPython/RustPython/pull/8904/files#diff-8aedf542fe72b757331790df03cf4b18b143ee45871a70dd5118846a93199017
https://github.com/RustPython/RustPython/pull/8904/files#diff-8aedf542fe72b757331790df03cf4b18b143ee45871a70dd5118846a93199017
https://github.com/RustPython/RustPython/pull/8904/files#diff-8aedf542fe72b757331790df03cf4b18b143ee45871a70dd5118846a93199017
https://github.com/RustPython/RustPython/pull/8904/files#diff-8aedf542fe72b757331790df03cf4b18b143ee45871a70dd5118846a93199017
https://github.com/RustPython/RustPython/pull/8904/files#diff-8aedf542fe72b757331790df03cf4b18b143ee45871a70dd5118846a93199017
https://github.com/RustPython/RustPython/pull/8904/files#diff-8aedf542fe72b757331790df03cf4b18b143ee45871a70dd5118846a93199017
https://github.com/RustPython/RustPython/pull/8904/files#diff-8aedf542fe72b757331790df03cf4b18b143ee45871a70dd5118846a93199017
https://github.com/RustPython/RustPython/pull/8904/files#diff-8aedf542fe72b757331790df03cf4b18b143ee45871a70dd5118846a93199017
https://github.com/RustPython/RustPython/pull/8904/files#diff-8aedf542fe72b757331790df03cf4b18b143ee45871a70dd5118846a93199017
https://github.com/RustPython/RustPython/pull/8904/files#diff-8aedf542fe72b757331790df03cf4b18b143ee45871a70dd5118846a93199017
https://github.com/RustPython/RustPython/pull/8904/files#diff-8aedf542fe72b757331790df03cf4b18b143ee45871a70dd5118846a93199017
https://github.com/RustPython/RustPython/pull/8904/files#diff-8aedf542fe72b757331790df03cf4b18b143ee45871a70dd5118846a93199017
https://github.com/RustPython/RustPython/pull/8904/files#diff-8aedf542fe72b757331790df03cf4b18b143ee45871a70dd5118846a93199017
https://github.com/RustPython/RustPython/pull/8904/files#diff-8aedf542fe72b757331790df03cf4b18b143ee45871a70dd5118846a93199017
Please reload this pagehttps://github.com/RustPython/RustPython/pull/8904/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/8904/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.