René's URL Explorer Experiment


Title: Update Lib free-threading core API tests to Python 3.15 by youknowdot · Pull Request #9428 · RustPython/RustPython · GitHub

Open Graph Title: Update Lib free-threading core API tests to Python 3.15 by youknowdot · Pull Request #9428 · RustPython/RustPython

X Title: Update Lib free-threading core API tests to Python 3.15 by youknowdot · Pull Request #9428 · RustPython/RustPython

Description: Summary Use scripts/update_lib migrate to add the canonical Python 3.15 free-threading package initializer and eighteen reviewed API test modules: bisect, exceptions, functions, functools, threading, types, string template races, methodcaller, enumerate, reversed, zip, itertools combinations/product, context, function annotations, list mutations, suggestions, system settings, and regular expressions. All nineteen files (991 lines) are byte-identical to CPython 3.15.0 d220409a13b77de7a6c30abe16ea90db01528edc. No test edits, RustPython skips, native changes, or dependency changes. This is a reviewed subset, not all free-threading tests. test_collections and test_csv remain deferred: deque mutation errors and CSV reader generation errors differ from canonical concurrency expectations. Their CPython critical-section semantics need separate native work; simply locking across arbitrary user callbacks risks reentrant deadlocks. Runtime scope and limitations RustPython advertises Py_GIL_DISABLED=1, so the canonical package gate does not skip these tests. Existing APIs and native locking paths were source-reviewed, but concurrency behavior has not been executed or proven compatible locally. There are 44 class test methods (approximately 46 cases by static inheritance, not runtime discovery; the combinatoric module's top-level test_concurrent_iteration function is only a helper). Most workers have fixed loops or drain finite immutable inputs. List append/extend readers instead depend on successful completion of their 5,000-item writer; failure of that writer may strand readers. The list group has up to 11 simultaneous workers, and its reader iteration count is scheduling-dependent. The context writer is event-terminated: readers set the event in finally, and start_threads also calls its unlock callback to set it. Barriers and several direct joins/executor waits have no individual timeout. The existing native CI regrtest --timeout 600 provides outer subprocess containment, not a guarantee of termination, deadlock freedom, or runtime success. Coverage is deliberately described narrowly: zip primarily checks concurrent exhaustion, not atomic tuple pairing or ordering; enumerate does not assert item/index pairing; combinations tests r=2, not the separate r=0 state path. Passing these tests would not prove general concurrent iterator atomicity. The regex scanner regression permits executions without a concurrent-entry error and checks neither ordering nor match counts: RustPython still lacks CPython's scanner execution guard, so this does not establish scanner concurrency equivalence. The canonical integer-string-limit test captures the final loop variable in its lambdas, so it exercises simultaneous setters rather than mixed getters/setters; the dlopenflags test retains its canonical capability skip. Those broader native semantics remain separate compatibility work. Validation Canonical Git-blob equality for all nineteen paths and static AST/native-source review, including independent review. PYTHONPATH=scripts -m unittest discover -s scripts/update_lib/tests: 228 passed after the four-file extension. Applicable repository hooks passed on all nineteen files (merge-conflict check, ruff format/check, redundant test patch check); git diff --check passed. No local concurrency test execution, native build, or full interpreter test run. Hosted CI is pending.

Open Graph Description: Summary Use scripts/update_lib migrate to add the canonical Python 3.15 free-threading package initializer and eighteen reviewed API test modules: bisect, exceptions, functions, functools, threadi...

X Description: Summary Use scripts/update_lib migrate to add the canonical Python 3.15 free-threading package initializer and eighteen reviewed API test modules: bisect, exceptions, functions, functools, threadi...

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

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:6c7f3310-72ea-0098-a02f-66be733d3b15
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC8D4:1050BD:1569DDF:1C53266:6B01FE66
html-safe-nonce7526634a106c72b54f56510cfc9d4d65d0c07b1e578d28300f622f216a978d8e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOEQ0OjEwNTBCRDoxNTY5RERGOjFDNTMyNjY6NkIwMUZFNjYiLCJ2aXNpdG9yX2lkIjoiNjkzODk2OTA4OTU2NjE3ODkxOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmaced7335982f98b3ff50ddfecf413a2c63fbcd2fa4d1910ff72dbae8605f01b82b
hovercard-subject-tagpull_request:5049963890
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/9428/files
twitter:imagehttps://avatars.githubusercontent.com/u/336763669?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/336763669?s=400&v=4
og:image:altSummary Use scripts/update_lib migrate to add the canonical Python 3.15 free-threading package initializer and eighteen reviewed API test modules: bisect, exceptions, functions, functools, threadi...
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/9428/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F9428%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%2F9428%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/9428/files
Reloadhttps://github.com/RustPython/RustPython/pull/9428/files
Reloadhttps://github.com/RustPython/RustPython/pull/9428/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
youknowdot:youknowdot/free-threading-core-tests-315-20261028https://github.com/youknowdot/RustPython/tree/youknowdot/free-threading-core-tests-315-20261028
Conversation 3 https://github.com/RustPython/RustPython/pull/9428
Commits 3 https://github.com/RustPython/RustPython/pull/9428/commits
Checks 20 https://github.com/RustPython/RustPython/pull/9428/checks
Files changed https://github.com/RustPython/RustPython/pull/9428/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9428/files
Update Lib free-threading core API tests to Python 3.15 https://github.com/RustPython/RustPython/pull/9428/files#top
Show all changes 3 commits https://github.com/RustPython/RustPython/pull/9428/files
6070863 Update Lib free-threading core API tests to Python 3.15 codex Oct 28, 2026 https://github.com/RustPython/RustPython/pull/9428/commits/6070863ede4392871b75e237f30d3d9cc5ee618e
b515da2 Add canonical free-threading iterator and context tests codex Oct 28, 2026 https://github.com/RustPython/RustPython/pull/9428/commits/b515da2253e494a5fe8196cb96f490f18e8ccdc7
7416fab Add canonical shared-list and helper concurrency regressions codex Oct 28, 2026 https://github.com/RustPython/RustPython/pull/9428/commits/7416fab7886e0af502f07f69994a0dd66995add9
Clear filters https://github.com/RustPython/RustPython/pull/9428/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9428/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9428/files
__init__.py https://github.com/RustPython/RustPython/pull/9428/files#diff-bc978aba3657e5740d73832b92c7be3b54d926b8015ba71b5bbac4f92556d8f0
test_bisect.py https://github.com/RustPython/RustPython/pull/9428/files#diff-0b86a7992d910a06701452ce14e70662d68649f4f18509cda347b184347e47e9
test_context.py https://github.com/RustPython/RustPython/pull/9428/files#diff-691188adcbb97cc7a193a5e59a622f16545def713343102db2b72bb1128790c1
test_enumerate.py https://github.com/RustPython/RustPython/pull/9428/files#diff-6386518b101372fe6e13559dbc8e31c21cd41675ce50a3b1a0f57be3996b19dc
test_exceptions.py https://github.com/RustPython/RustPython/pull/9428/files#diff-13bb3eaa4cb5f46b59d0601e0619afb868445293982c75a6238484432f184176
test_func_annotations.py https://github.com/RustPython/RustPython/pull/9428/files#diff-aca77362b6d9b5115533a90870f8c7e1e4c89ae6e9579fd45b024403d6182165
test_functions.py https://github.com/RustPython/RustPython/pull/9428/files#diff-55d364fe69b5760fed0936c5ba35dd1ac9fd8c75b79df12e3fd9c252d29e8d09
test_functools.py https://github.com/RustPython/RustPython/pull/9428/files#diff-3eb5a6d77f0c1af332fdb7c6a1bf554670eeae42d0709aeac4ad2f16722f3cd4
test_itertools_combinatoric.py https://github.com/RustPython/RustPython/pull/9428/files#diff-2bb5d94fc763856ec0cd3b17f75aa857c797e81f36e538494e77974e215d55f1
test_list.py https://github.com/RustPython/RustPython/pull/9428/files#diff-e4442179e03304000a1771416120cd47ab08cd6c28d1c90337636b178d12ef5e
test_methodcaller.py https://github.com/RustPython/RustPython/pull/9428/files#diff-5a353c5130e7985c172d6ca0a8ccd03cd5879dc68e2618ffcc067c3a5eadedaa
test_re.py https://github.com/RustPython/RustPython/pull/9428/files#diff-bcfb2bbb6239b40a32693ae0b4b269c89924eac7e30a2489a14ac7e0ce8321cb
test_reversed.py https://github.com/RustPython/RustPython/pull/9428/files#diff-9eafe3871f3b3ef0a51145cbb0890516343a3edd14f3ae53fcfc9db4a0f0b2bf
test_string_template_race.py https://github.com/RustPython/RustPython/pull/9428/files#diff-90c6e8b2ece4eb75153412cb9ff7f80fb6b1e003c669f1f43a41929f85ccec79
test_suggestions.py https://github.com/RustPython/RustPython/pull/9428/files#diff-7210b9920cd18467044b44a510d8205d8b20a310bb4cd9b7b96c2fd5002b5849
test_sys.py https://github.com/RustPython/RustPython/pull/9428/files#diff-50c194ba2d14bd1e48ca2440a194ae76c1606d416e68ec83d4da7b43f0717795
test_threading.py https://github.com/RustPython/RustPython/pull/9428/files#diff-be27d84769aae3c2f92edaf4dff2fc541f08e8d06450ab7e18cf01ad520a9f4e
test_types.py https://github.com/RustPython/RustPython/pull/9428/files#diff-451b229d19bd0ea24ba938ace66ff0ac02f5033d7c779a656779611c07fb6ba7
test_zip.py https://github.com/RustPython/RustPython/pull/9428/files#diff-32a8cf436cf0c872910def51e80e9e8d8686d2724e091b7f42f56d6bcc3dce6d
Lib/test/test_free_threading/__init__.pyhttps://github.com/RustPython/RustPython/pull/9428/files#diff-bc978aba3657e5740d73832b92c7be3b54d926b8015ba71b5bbac4f92556d8f0
View file https://github.com/youknowdot/RustPython/blob/7416fab7886e0af502f07f69994a0dd66995add9/Lib/test/test_free_threading/__init__.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9428/{{ revealButtonHref }}
Lib/test/test_free_threading/test_bisect.pyhttps://github.com/RustPython/RustPython/pull/9428/files#diff-0b86a7992d910a06701452ce14e70662d68649f4f18509cda347b184347e47e9
View file https://github.com/youknowdot/RustPython/blob/7416fab7886e0af502f07f69994a0dd66995add9/Lib/test/test_free_threading/test_bisect.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9428/{{ revealButtonHref }}
Lib/test/test_free_threading/test_context.pyhttps://github.com/RustPython/RustPython/pull/9428/files#diff-691188adcbb97cc7a193a5e59a622f16545def713343102db2b72bb1128790c1
View file https://github.com/youknowdot/RustPython/blob/7416fab7886e0af502f07f69994a0dd66995add9/Lib/test/test_free_threading/test_context.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9428/{{ revealButtonHref }}
Lib/test/test_free_threading/test_enumerate.pyhttps://github.com/RustPython/RustPython/pull/9428/files#diff-6386518b101372fe6e13559dbc8e31c21cd41675ce50a3b1a0f57be3996b19dc
View file https://github.com/youknowdot/RustPython/blob/7416fab7886e0af502f07f69994a0dd66995add9/Lib/test/test_free_threading/test_enumerate.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9428/{{ revealButtonHref }}
Lib/test/test_free_threading/test_exceptions.pyhttps://github.com/RustPython/RustPython/pull/9428/files#diff-13bb3eaa4cb5f46b59d0601e0619afb868445293982c75a6238484432f184176
View file https://github.com/youknowdot/RustPython/blob/7416fab7886e0af502f07f69994a0dd66995add9/Lib/test/test_free_threading/test_exceptions.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9428/{{ revealButtonHref }}
Lib/test/test_free_threading/test_func_annotations.pyhttps://github.com/RustPython/RustPython/pull/9428/files#diff-aca77362b6d9b5115533a90870f8c7e1e4c89ae6e9579fd45b024403d6182165
View file https://github.com/youknowdot/RustPython/blob/7416fab7886e0af502f07f69994a0dd66995add9/Lib/test/test_free_threading/test_func_annotations.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9428/{{ revealButtonHref }}
Lib/test/test_free_threading/test_functions.pyhttps://github.com/RustPython/RustPython/pull/9428/files#diff-55d364fe69b5760fed0936c5ba35dd1ac9fd8c75b79df12e3fd9c252d29e8d09
View file https://github.com/youknowdot/RustPython/blob/7416fab7886e0af502f07f69994a0dd66995add9/Lib/test/test_free_threading/test_functions.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9428/{{ revealButtonHref }}
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9428/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9428/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.