René's URL Explorer Experiment


Title: Match remaining native signatures and watchdog thread limits by youknowdot · Pull Request #9808 · RustPython/RustPython · GitHub

Open Graph Title: Match remaining native signatures and watchdog thread limits by youknowdot · Pull Request #9808 · RustPython/RustPython

X Title: Match remaining native signatures and watchdog thread limits by youknowdot · Pull Request #9808 · RustPython/RustPython

Description: Summary Address five API paths not covered by the open signature PRs, based directly on main 4242849852: Generate socket.sendmsg defaults and address from its argument declaration. Generate SQLite adapt's protocol default and backup's 0.25 spelling. Reuse the Connection parameter declaration for sqlite3.connect, preserving CPython's custom-factory forwarding, including missing or duplicate database arguments, unknown keywords, and unconverted values. The adapter moves the original arguments without binding or copying them again. Implement the watchdog's keyword-only max_threads: negative caps truncate immediately, zero uses 100, positive caps limit emitted threads, and an exact count does not add an ellipsis. No raw-text override is introduced. Existing #9758 handles Clinic line wrapping. #9775 independently corrects timeout keyword acceptance. When combining these branches, preserve both sets of tests in the newly added stdlib_faulthandler.py (an add/add conflict) and add max_threads: 100 to #9775's WatchdogState unit-test initializer. Inventory A fresh CPython 3.15.1 comparison of 16,227 observed API paths on Linux found 109 raw-signature differences with default features and 112 with sqlite. Additional RustPython signatures where CPython has none are allowed and excluded from those counts. Existing PRs cover 105 of the 112 paths: #9758 (61 layout differences), #9756 (24 legacy groups/CSV), #9763 (14 interpreter functions), #9773 (four legacy signatures), and #9551 (two sched_param paths). This patch changes the five remaining socket/SQLite/watchdog paths. It also exposes Connection's signature through the reused metadata, an allowed additional signature. On this independent branch, exact raw differences decrease 112 to 110: sendmsg and adapt become exact; connect/backup still need #9758's wrapping, and the watchdog still needs #9775's keyword correction plus wrapping. No observed paths are added or removed. The two uncovered APIs after those PRs are combined are faulthandler.enable and register. They need signal-safe multi-thread dumping, and enable additionally needs a safe native C-stack path. Accepting ignored options or calling the allocation-based normal C-stack helper from a signal handler would not implement those APIs correctly. Validation Normal commit hooks and independent read-only review passed. Workspace Rust tests passed: 1,543 passed, 20 ignored. Separate C-API tests passed: 149 passed, 2 ignored. Strict workspace/all-target and separate C-API Clippy passed with -D warnings. Final SQLite-enabled release build passed. The three changed snippets and the restored time snippet pass on RustPython and CPython 3.15.0/3.15.1. All eight selected pytest cases pass with each CPython version. Supported release sendmsg tests (SendmsgUDPTest, SendmsgTCPTest) passed: 24 tests. The broader socket suite retains the baseline sandbox failures. Release test_sqlite3 test_faulthandler test_time test_inspect: all four files passed, 1,009 tests run, 92 skipped. Full extra_tests with CPython 3.15.1 and the matching debug implementation: 494 passed, 19 failed, 15 subtests passed. All 19 failure IDs reproduce using the main 4242849852 SQLite-enabled binary: restricted multiprocessing/socket/chown operations and existing CPython snippet/test-runner failures. This is not a full-suite pass. Final release inventory: 16,227 paths retained, 112 → 110 raw mismatches, exactly the five intended API changes plus the allowed Connection signature, and zero existing exact matches regressed. Review follow-up (370de1e849): moved the watchdog regression unchanged from stdlib_time.py into stdlib_faulthandler.py. The time snippet now exactly matches main. Workspace/C-API tests and both strict Clippy checks were rerun successfully, and all 19 full-suite failure IDs were freshly reproduced with the main SQLite-enabled binary. CI follow-up (002c447f4e): CI pins CPython 3.15.0, whose sendmsg metadata still has defaults and raises ValueError in inspect.signature. Assert that exact older metadata separately while retaining the existing RustPython/CPython 3.15.1 checks. This is independent of #9758 line wrapping and changes no runtime code. Workspace/C-API tests and both strict Clippy checks were rerun successfully for this follow-up; independent review also passed the signature snippet on all three interpreters. The failure reproduces before the fix and passes afterward with CPython 3.15.0. Full extra_tests with that version: 497 passed, 16 failed, 15 subtests passed; all 16 failures reproduce with the main 4242849852 SQLite-enabled binary. Hosted CI for 002c447f4e passed, including Linux/macOS/Windows snippets, Rust tests, Clippy, Miri, WASI, and cross-target checks. All 26 reported checks succeeded; the optional base/head/CPython comparison was skipped. The branch remains a draft. AI assistance Implementation, comparison with CPython, and validation were assisted by Codex.

Open Graph Description: Summary Address five API paths not covered by the open signature PRs, based directly on main 4242849852: Generate socket.sendmsg defaults and address from its argument declaration. Generate SQLite...

X Description: Summary Address five API paths not covered by the open signature PRs, based directly on main 4242849852: Generate socket.sendmsg defaults and address from its argument declaration. Generate SQLite...

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

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:6c479299-4550-4fea-94c8-5097c85c1cfa
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE1CC:96DDF:378C23E:4672E7F:6B01E415
html-safe-nonce2b3bceb51a0f636743cd1c71741ef4ac9e0fce3f16c9325279624066c5bb65c7
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMUNDOjk2RERGOjM3OEMyM0U6NDY3MkU3Rjo2QjAxRTQxNSIsInZpc2l0b3JfaWQiOiI1MjI4NzQzNTgwNzk2OTcwMDA1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac4d1666be295f3ad10ac867aabe623c0b336ca89c0889412f8586ff230051519d
hovercard-subject-tagpull_request:5262816568
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/9808/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 Address five API paths not covered by the open signature PRs, based directly on main 4242849852: Generate socket.sendmsg defaults and address from its argument declaration. Generate SQLite...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
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
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/RustPython/RustPython/pull/9808/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F9808%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%2F9808%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/9808/files
Reloadhttps://github.com/RustPython/RustPython/pull/9808/files
Reloadhttps://github.com/RustPython/RustPython/pull/9808/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:fix/remaining-signatures-20261111https://github.com/youknowdot/RustPython/tree/fix/remaining-signatures-20261111
Conversation 8 https://github.com/RustPython/RustPython/pull/9808
Commits 3 https://github.com/RustPython/RustPython/pull/9808/commits
Checks 27 https://github.com/RustPython/RustPython/pull/9808/checks
Files changed https://github.com/RustPython/RustPython/pull/9808/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9808/files
Match remaining native signatures and watchdog thread limits https://github.com/RustPython/RustPython/pull/9808/files#top
Show all changes 3 commits https://github.com/RustPython/RustPython/pull/9808/files
7fbed86 Match native signatures and watchdog thread limits youknowdot Nov 11, 2026 https://github.com/RustPython/RustPython/pull/9808/commits/7fbed869fb6f0dda1162315a291ab92b93a0947e
370de1e Move watchdog regressions into faulthandler snippet youknowdot Nov 11, 2026 https://github.com/RustPython/RustPython/pull/9808/commits/370de1e849715ce1844c62c45e366fa7975d2997
002c447 Handle CPython 3.15.0 sendmsg metadata in signature tests youknowdot Nov 11, 2026 https://github.com/RustPython/RustPython/pull/9808/commits/002c447f4e0c1d90674b80e09c86cbba788c7078
Clear filters https://github.com/RustPython/RustPython/pull/9808/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9808/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9808/files
_sqlite3.rs https://github.com/RustPython/RustPython/pull/9808/files#diff-5a5ea8fc8d5bfc6b5da126f9574990e39802662762f23a2a6a9143beca021e15
faulthandler.rs https://github.com/RustPython/RustPython/pull/9808/files#diff-b15b38e1d9030b5f032e0ff01700ac4b9da28b3ec08365b65e5387dbd74ec39f
socket.rs https://github.com/RustPython/RustPython/pull/9808/files#diff-184374c26b267e900965c88a05d2c963f9c2fcdc8419201b0fa39b9ed462b5c7
builtin_signature.py https://github.com/RustPython/RustPython/pull/9808/files#diff-10345555e7703ee171a268bc4c9e034fe6c4065467dd03018f308e7cdc29361b
stdlib_faulthandler.py https://github.com/RustPython/RustPython/pull/9808/files#diff-98171317d87c6154ac209272f0c83b76664d9a501e204d5caa30e17aa0b95b14
stdlib_sqlite.py https://github.com/RustPython/RustPython/pull/9808/files#diff-af714534f7f9037baf4a054f88622295acbbf331b8266316cbc5efd1476304e9
crates/stdlib/src/_sqlite3.rshttps://github.com/RustPython/RustPython/pull/9808/files#diff-5a5ea8fc8d5bfc6b5da126f9574990e39802662762f23a2a6a9143beca021e15
View file https://github.com/youknowdot/RustPython/blob/002c447f4e0c1d90674b80e09c86cbba788c7078/crates/stdlib/src/_sqlite3.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9808/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9808/files#diff-5a5ea8fc8d5bfc6b5da126f9574990e39802662762f23a2a6a9143beca021e15
https://github.com/RustPython/RustPython/pull/9808/files#diff-5a5ea8fc8d5bfc6b5da126f9574990e39802662762f23a2a6a9143beca021e15
https://github.com/RustPython/RustPython/pull/9808/files#diff-5a5ea8fc8d5bfc6b5da126f9574990e39802662762f23a2a6a9143beca021e15
https://github.com/RustPython/RustPython/pull/9808/files#diff-5a5ea8fc8d5bfc6b5da126f9574990e39802662762f23a2a6a9143beca021e15
https://github.com/RustPython/RustPython/pull/9808/files#diff-5a5ea8fc8d5bfc6b5da126f9574990e39802662762f23a2a6a9143beca021e15
https://github.com/RustPython/RustPython/pull/9808/files#diff-5a5ea8fc8d5bfc6b5da126f9574990e39802662762f23a2a6a9143beca021e15
https://github.com/RustPython/RustPython/pull/9808/files#diff-5a5ea8fc8d5bfc6b5da126f9574990e39802662762f23a2a6a9143beca021e15
https://github.com/RustPython/RustPython/pull/9808/files#diff-5a5ea8fc8d5bfc6b5da126f9574990e39802662762f23a2a6a9143beca021e15
https://github.com/RustPython/RustPython/pull/9808/files#diff-5a5ea8fc8d5bfc6b5da126f9574990e39802662762f23a2a6a9143beca021e15
crates/stdlib/src/faulthandler.rshttps://github.com/RustPython/RustPython/pull/9808/files#diff-b15b38e1d9030b5f032e0ff01700ac4b9da28b3ec08365b65e5387dbd74ec39f
View file https://github.com/youknowdot/RustPython/blob/002c447f4e0c1d90674b80e09c86cbba788c7078/crates/stdlib/src/faulthandler.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9808/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9808/files#diff-b15b38e1d9030b5f032e0ff01700ac4b9da28b3ec08365b65e5387dbd74ec39f
https://github.com/RustPython/RustPython/pull/9808/files#diff-b15b38e1d9030b5f032e0ff01700ac4b9da28b3ec08365b65e5387dbd74ec39f
https://github.com/RustPython/RustPython/pull/9808/files#diff-b15b38e1d9030b5f032e0ff01700ac4b9da28b3ec08365b65e5387dbd74ec39f
https://github.com/RustPython/RustPython/pull/9808/files#diff-b15b38e1d9030b5f032e0ff01700ac4b9da28b3ec08365b65e5387dbd74ec39f
https://github.com/RustPython/RustPython/pull/9808/files#diff-b15b38e1d9030b5f032e0ff01700ac4b9da28b3ec08365b65e5387dbd74ec39f
https://github.com/RustPython/RustPython/pull/9808/files#diff-b15b38e1d9030b5f032e0ff01700ac4b9da28b3ec08365b65e5387dbd74ec39f
https://github.com/RustPython/RustPython/pull/9808/files#diff-b15b38e1d9030b5f032e0ff01700ac4b9da28b3ec08365b65e5387dbd74ec39f
https://github.com/RustPython/RustPython/pull/9808/files#diff-b15b38e1d9030b5f032e0ff01700ac4b9da28b3ec08365b65e5387dbd74ec39f
https://github.com/RustPython/RustPython/pull/9808/files#diff-b15b38e1d9030b5f032e0ff01700ac4b9da28b3ec08365b65e5387dbd74ec39f
https://github.com/RustPython/RustPython/pull/9808/files#diff-b15b38e1d9030b5f032e0ff01700ac4b9da28b3ec08365b65e5387dbd74ec39f
https://github.com/RustPython/RustPython/pull/9808/files#diff-b15b38e1d9030b5f032e0ff01700ac4b9da28b3ec08365b65e5387dbd74ec39f
crates/stdlib/src/socket.rshttps://github.com/RustPython/RustPython/pull/9808/files#diff-184374c26b267e900965c88a05d2c963f9c2fcdc8419201b0fa39b9ed462b5c7
View file https://github.com/youknowdot/RustPython/blob/002c447f4e0c1d90674b80e09c86cbba788c7078/crates/stdlib/src/socket.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9808/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9808/files#diff-184374c26b267e900965c88a05d2c963f9c2fcdc8419201b0fa39b9ed462b5c7
https://github.com/RustPython/RustPython/pull/9808/files#diff-184374c26b267e900965c88a05d2c963f9c2fcdc8419201b0fa39b9ed462b5c7
https://github.com/RustPython/RustPython/pull/9808/files#diff-184374c26b267e900965c88a05d2c963f9c2fcdc8419201b0fa39b9ed462b5c7
https://github.com/RustPython/RustPython/pull/9808/files#diff-184374c26b267e900965c88a05d2c963f9c2fcdc8419201b0fa39b9ed462b5c7
extra_tests/snippets/builtin_signature.pyhttps://github.com/RustPython/RustPython/pull/9808/files#diff-10345555e7703ee171a268bc4c9e034fe6c4065467dd03018f308e7cdc29361b
View file https://github.com/youknowdot/RustPython/blob/002c447f4e0c1d90674b80e09c86cbba788c7078/extra_tests/snippets/builtin_signature.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9808/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9808/files#diff-10345555e7703ee171a268bc4c9e034fe6c4065467dd03018f308e7cdc29361b
https://github.com/RustPython/RustPython/pull/9808/files#diff-10345555e7703ee171a268bc4c9e034fe6c4065467dd03018f308e7cdc29361b
https://github.com/RustPython/RustPython/pull/9808/files#diff-10345555e7703ee171a268bc4c9e034fe6c4065467dd03018f308e7cdc29361b
https://github.com/RustPython/RustPython/pull/9808/files#diff-10345555e7703ee171a268bc4c9e034fe6c4065467dd03018f308e7cdc29361b
extra_tests/snippets/stdlib_faulthandler.pyhttps://github.com/RustPython/RustPython/pull/9808/files#diff-98171317d87c6154ac209272f0c83b76664d9a501e204d5caa30e17aa0b95b14
View file https://github.com/youknowdot/RustPython/blob/002c447f4e0c1d90674b80e09c86cbba788c7078/extra_tests/snippets/stdlib_faulthandler.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9808/{{ revealButtonHref }}
extra_tests/snippets/stdlib_sqlite.pyhttps://github.com/RustPython/RustPython/pull/9808/files#diff-af714534f7f9037baf4a054f88622295acbbf331b8266316cbc5efd1476304e9
View file https://github.com/youknowdot/RustPython/blob/002c447f4e0c1d90674b80e09c86cbba788c7078/extra_tests/snippets/stdlib_sqlite.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9808/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9808/files#diff-af714534f7f9037baf4a054f88622295acbbf331b8266316cbc5efd1476304e9
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9808/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.