René's URL Explorer Experiment


Title: Align profiler bindings and capability checks with Python 3.15 by youknowdot · Pull Request #9340 · RustPython/RustPython · GitHub

Open Graph Title: Align profiler bindings and capability checks with Python 3.15 by youknowdot · Pull Request #9340 · RustPython/RustPython

X Title: Align profiler bindings and capability checks with Python 3.15 by youknowdot · Pull Request #9340 · RustPython/RustPython

Description: Summary Continue extracting profiler work from #8954, preserving the offline argument-binding and finite-EOF fixes already in this PR. Accept writer keywords and numeric protocols while preserving float-subclass payloads and conversion order. Preserve CPython's finite-EOF decoding windows with checked offsets, allocation limits and cursor bounds. Add is_python_process with bounded CPython runtime-cookie discovery for Linux, macOS and Windows, plus the platform build capability export. Detection uses runtime metadata, not a constant result or process-name-only heuristic. Import CPython 3.15 d220409a13b77de7a6c30abe16ea90db01528edc's two remote-debugging support helpers and full test_external_inspection through the official updater. Add a conservative selected-function importer so unrelated support helpers remain unchanged. RemoteUnwinder remains unsupported. The canonical upstream capability gate is preserved without a RustPython-specific skip guard, fake platform/capability or removed API. Validation Final head 4961cfbb: default Linux CLI build, strict host_env/stdlib library Clippy (--lib -- -D warnings) and normal commit hooks passed. 28 deterministic object-parser, in-memory reader and budget observations passed on the locator source imported here. Official-updater tooling: 23 tests and Ruff checks passed; canonical bytes and unrelated support-byte preservation verified. Seven pre-backend binding/conversion observations passed in both pinned CPython and the sealed final candidate. Types, callbacks and sentinel identity match; existing error-wording differences are recorded. One normal canonical import produced all five upstream class skip markers and the expected cached helper behavior. Its captured result was accepted by separately reviewed offline verification after a validation-only bootstrap-origin mismatch; the original failed guard receipt remains preserved. This is import/decorator evidence, not execution of the live tests. The earlier 36d6bf9 standalone source passed 39 offline comparisons and 14 existing binary-format methods, including the finite-EOF regressions. Remaining limits The CPython owned-child positive detector control returned False; the candidate live-process matrix was therefore not run. Positive detection and native macOS/Windows compilation/runtime remain unvalidated locally. No unwinder, full-suite, baseline-run or all-green CI claim is made. The canonical observation's supplemental verification establishes matching endpoints, not continuous immutability or runtime object identity. AI assistance OpenAI Codex (model version unavailable) assisted with implementation, review, validation and PR preparation. Local commits include an Assisted-by trailer. Summary by CodeRabbit New Features Added the ability to check whether a process is running Python. Selective library migration can now copy chosen top-level functions, with checks for source and destination changes. Bug Fixes Exit details can include optional exception values and tracebacks. Profiling accepts Python values for sample timestamps, durations, and sample rates. Profile data with string or frame tables extending beyond the statistics section can now be read. Compile warnings retain the requested filename, and warning-hook exceptions are preserved. Added an indicator for process memory read support.

Open Graph Description: Summary Continue extracting profiler work from #8954, preserving the offline argument-binding and finite-EOF fixes already in this PR. Accept writer keywords and numeric protocols while preserving...

X Description: Summary Continue extracting profiler work from #8954, preserving the offline argument-binding and finite-EOF fixes already in this PR. Accept writer keywords and numeric protocols while preserving...

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

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:b88e7395-794f-9bab-6c1e-8d7ccb363834
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC2B0:CE438:109B4F9:1634521:6B01F39C
html-safe-nonce59ea0dc322b5bcce8e93966d54a4db988151c630926880fa967f48872e0ee52c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMkIwOkNFNDM4OjEwOUI0Rjk6MTYzNDUyMTo2QjAxRjM5QyIsInZpc2l0b3JfaWQiOiI0MDE2NDc3NzQ4NTU3MTE2MzE2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac7378b1db14576d1f9a2a93209683c006c505c152642e429d2fb6fa8c8aecc422
hovercard-subject-tagpull_request:4992403371
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/9340/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 Continue extracting profiler work from #8954, preserving the offline argument-binding and finite-EOF fixes already in this PR. Accept writer keywords and numeric protocols while preserving...
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/9340/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F9340%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%2F9340%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/9340/files
Reloadhttps://github.com/RustPython/RustPython/pull/9340/files
Reloadhttps://github.com/RustPython/RustPython/pull/9340/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:split/offline-profiler-argument-bindinghttps://github.com/youknowdot/RustPython/tree/split/offline-profiler-argument-binding
Conversation 6 https://github.com/RustPython/RustPython/pull/9340
Commits 8 https://github.com/RustPython/RustPython/pull/9340/commits
Checks 29 https://github.com/RustPython/RustPython/pull/9340/checks
Files changed https://github.com/RustPython/RustPython/pull/9340/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9340/files
Align profiler bindings and capability checks with Python 3.15 https://github.com/RustPython/RustPython/pull/9340/files#top
Show all changes 8 commits https://github.com/RustPython/RustPython/pull/9340/files
6bacfb6 Align offline profiler argument binding with Python 3.15 youknowdot Oct 24, 2026 https://github.com/RustPython/RustPython/pull/9340/commits/6bacfb6ea7ad7e49fe99a4142dfb3a042e954ed2
0eee27f Restore the offline profiler capability flag youknowdot Oct 24, 2026 https://github.com/RustPython/RustPython/pull/9340/commits/0eee27f4b7750aeec04b56882decacf0c0bdfba8
36d6bf9 Restore finite-EOF table bounds for offline profiles youknowdot Oct 24, 2026 https://github.com/RustPython/RustPython/pull/9340/commits/36d6bf9ba11440bc575760f8ad4ce879b9d22cd2
5a0ded8 Preserve symtable warning exceptions and original filenames (#9282) youknowdot Oct 24, 2026 https://github.com/RustPython/RustPython/pull/9340/commits/5a0ded80dc0873d4c4e907e994960b7693a42674
5bccf31 build(deps): align the Cranelift 0.136 dependency family (#9341) youknowdot Oct 24, 2026 https://github.com/RustPython/RustPython/pull/9340/commits/5bccf31156996d42882485ba70f17edbc77a713e
93257b8 Support selective canonical function migration youknowdot Oct 24, 2026 https://github.com/RustPython/RustPython/pull/9340/commits/93257b8cac853f43f74ee021fd1b0981193aaf13
24427a7 Detect CPython runtimes for canonical inspection feature checks youknowdot Oct 24, 2026 https://github.com/RustPython/RustPython/pull/9340/commits/24427a7f86b0e4db0b23489efcfeb40b0ae6eae2
4961cfb Preserve the published offline profiler branch ancestry youknowdot Oct 24, 2026 https://github.com/RustPython/RustPython/pull/9340/commits/4961cfbb5440aecf05f9ab4256aa0cc9c2519605
Clear filters https://github.com/RustPython/RustPython/pull/9340/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9340/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9340/files
Cargo.lock https://github.com/RustPython/RustPython/pull/9340/files#diff-13ee4b2252c9e516a0547f2891aa2105c3ca71c6d7a1e682c69be97998dfc87e
Cargo.toml https://github.com/RustPython/RustPython/pull/9340/files#diff-2e9d962a08321605940b5a657135052fbcef87b5e360662bb527c96d9a615542
__init__.py https://github.com/RustPython/RustPython/pull/9340/files#diff-d925268c057737ba320c489ca302fd5125f14840d22e50cfe226bdb5bb88ba8d
test_external_inspection.py https://github.com/RustPython/RustPython/pull/9340/files#diff-e23d1425a6f43944cb282709edbeacfa2398f4cd4c109e59dd49366dac46f2d7
Cargo.toml https://github.com/RustPython/RustPython/pull/9340/files#diff-e4412732c72406dfd2c3158e46bd5886285711715534b15ae910e1aec622ae4f
lib.rs https://github.com/RustPython/RustPython/pull/9340/files#diff-cf9f930dd10c898b22ab83a76b40df35bd5cfeb769ba5206f26deb9936d6cd86
common.rs https://github.com/RustPython/RustPython/pull/9340/files#diff-de8304584bb8b61329e9c121911f89265dacddcf0e51cf52558f811587be634c
linux.rs https://github.com/RustPython/RustPython/pull/9340/files#diff-75c8b8a6fb844af3c1208922773e30ce4754bc9399016510c68710fc8ec9f9d5
macos.rs https://github.com/RustPython/RustPython/pull/9340/files#diff-e1303fe718389354559d3aebf610f87a2fa5b8fb1c66335cec27a798e4f7481c
mod.rs https://github.com/RustPython/RustPython/pull/9340/files#diff-9c22dc6f749111b05b6eec91a53ddc16edfd943052389fc8c77ea183c23f279a
object_file.rs https://github.com/RustPython/RustPython/pull/9340/files#diff-38fe6ccf54ee6afbf3689d36a25258a7ac1f50ab017ad9e7a62f61bece3cbf40
windows.rs https://github.com/RustPython/RustPython/pull/9340/files#diff-966d59501aae78ba4a30c6e4442da246d51a180e1f6868ea8e63ab81c427d615
_remote_debugging.rs https://github.com/RustPython/RustPython/pull/9340/files#diff-85457703ae6447f77c6323feabb7aa64c4839208de2ee7d6e27ad419207feba2
binary.rs https://github.com/RustPython/RustPython/pull/9340/files#diff-d57b4b6dd5011ee0c5de816a8ad1c97ce9ff7b1a1c42ba6fc18ecab2f0f224c1
_symtable.rs https://github.com/RustPython/RustPython/pull/9340/files#diff-7477e9e4591858e6d4081901083139369e38ed09031c4fd7b741e3847cbe69c3
compile.rs https://github.com/RustPython/RustPython/pull/9340/files#diff-e7f70f57a7775d5472ffe0e4fe2f28f1c386fad78bef2ba2c46fd7f2224fa89e
cmd_migrate.py https://github.com/RustPython/RustPython/pull/9340/files#diff-c3593c79f94254515dba475389b7f38cfa3d73a1219d351d4713b7495cbd62ff
test_selected_functions.py https://github.com/RustPython/RustPython/pull/9340/files#diff-d087642834cc1fb8a4f9ecc40c06107d79dd316ef987fe6b0e7b03cfd5fd1002
Cargo.lockhttps://github.com/RustPython/RustPython/pull/9340/files#diff-13ee4b2252c9e516a0547f2891aa2105c3ca71c6d7a1e682c69be97998dfc87e
View file https://github.com/youknowdot/RustPython/blob/4961cfbb5440aecf05f9ab4256aa0cc9c2519605/Cargo.lock
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9340/files
Cargo.tomlhttps://github.com/RustPython/RustPython/pull/9340/files#diff-2e9d962a08321605940b5a657135052fbcef87b5e360662bb527c96d9a615542
View file https://github.com/youknowdot/RustPython/blob/4961cfbb5440aecf05f9ab4256aa0cc9c2519605/Cargo.toml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9340/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9340/files#diff-2e9d962a08321605940b5a657135052fbcef87b5e360662bb527c96d9a615542
https://github.com/RustPython/RustPython/pull/9340/files#diff-2e9d962a08321605940b5a657135052fbcef87b5e360662bb527c96d9a615542
https://github.com/RustPython/RustPython/pull/9340/files#diff-2e9d962a08321605940b5a657135052fbcef87b5e360662bb527c96d9a615542
https://github.com/RustPython/RustPython/pull/9340/files#diff-2e9d962a08321605940b5a657135052fbcef87b5e360662bb527c96d9a615542
https://github.com/RustPython/RustPython/pull/9340/files#diff-2e9d962a08321605940b5a657135052fbcef87b5e360662bb527c96d9a615542
Lib/test/support/__init__.pyhttps://github.com/RustPython/RustPython/pull/9340/files#diff-d925268c057737ba320c489ca302fd5125f14840d22e50cfe226bdb5bb88ba8d
View file https://github.com/youknowdot/RustPython/blob/4961cfbb5440aecf05f9ab4256aa0cc9c2519605/Lib/test/support/__init__.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9340/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9340/files#diff-d925268c057737ba320c489ca302fd5125f14840d22e50cfe226bdb5bb88ba8d
https://github.com/RustPython/RustPython/pull/9340/files#diff-d925268c057737ba320c489ca302fd5125f14840d22e50cfe226bdb5bb88ba8d
https://github.com/RustPython/RustPython/pull/9340/files#diff-d925268c057737ba320c489ca302fd5125f14840d22e50cfe226bdb5bb88ba8d
https://github.com/RustPython/RustPython/pull/9340/files#diff-d925268c057737ba320c489ca302fd5125f14840d22e50cfe226bdb5bb88ba8d
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9340/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9340/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.