René's URL Explorer Experiment


Title: Align XML backend and canonical libraries with Python 3.15 by youknowdot · Pull Request #9197 · RustPython/RustPython · GitHub

Open Graph Title: Align XML backend and canonical libraries with Python 3.15 by youknowdot · Pull Request #9197 · RustPython/RustPython

X Title: Align XML backend and canonical libraries with Python 3.15 by youknowdot · Pull Request #9197 · RustPython/RustPython

Description: Summary Replace the earlier vendored implementation with an independent, non-vendored XML compatibility split from #8954. Keep the existing registry xml 1.4.0 dependency and its existing expansion limits. No Cargo changes, vendored files or updater-tool changes remain in this PR's diff. Improve namespace callbacks, parser-error propagation, handler-return validation and ElementTree error reporting through the published backend's APIs. Update 12 XML library/test files from CPython 3.15.0, commit d220409a13b77de7a6c30abe16ea90db01528edc, using the existing scripts/update_lib tool. Remove 25 existing expected-failure decorators demonstrated stale by canonical tests. Test bodies/assertions are unchanged; unproven markers remain. The previous custom backend supplied cumulative amplification-accounting APIs absent from the published crate. This replacement excludes those APIs instead of vendoring the backend. Its pre-existing fixed expansion protections are unchanged. Fresh validation The local validation below was run on replacement commit dcff68be451106be0de358b266152b424c837eda against pinned main 75df7a8c2e47f981163792fe0154d698c28bcf93. The subsequent one-decorator follow-up is described separately below: Locked, offline, single-job build with --no-default-features --features stdlib,stdio,importlib,host_env,threading: passed. Targeted rustpython-stdlib library Clippy with -D warnings: passed. Exactly 52 canonical observations in five bounded processes: 49 successes and 3 expected failures, with no unexpected successes, failures, errors or skips. Coverage includes XML validators, SAX/DOM consumers, pure/native ElementTree cases, handler-return errors, and three isolated parent-parser constructor/reference-drop methods. The three retained expected failures document incomplete reparse-enabled callback timing and two malformed-input error-message differences. A fresh build initially reached its 40-minute execution limit. A separately reviewed same-source continuation preserved completed dependencies, rebuilt unfinished VM/stdlib/root components, and completed build and Clippy. The timed-out attempt is not counted as a successful build. The 52 local observations are not a complete XML-suite or workspace validation. On replacement commit dcff68be, Linux, macOS and Windows canonical CI found one stale expected-failure marker: ExpatReaderTest.test_expat_external_dtd_enabled passed unexpectedly in each initial run and rerun. This follow-up removes that decorator through update_lib, leaving assertions unchanged. The test validates external resolver dispatch and the expected unsupported-scheme URLError, not successful external DTD parsing. Correctness CI for dcff68be has finished: all other jobs passed; native canonical jobs failed only on this stale marker. On follow-up commit 4eb7a6889f08c93c6b459f7daeba7bae82364aac, all three native canonical jobs and the other 20 correctness jobs passed; Lib Dependencies also passed. The remaining Linux Rust job reached its 45-minute execution limit during sandbox-mode compilation and was cancelled, so full CI is not green. A targeted rerun request using the PR author account was denied because repository admin rights are required; a maintainer rerun is needed. Earlier broad results in this PR applied to the superseded vendored implementation, not this replacement. Remaining limitations Cumulative amplification-limit setters remain unsupported; existing published-backend fixed limits are not weakened. External child-parser construction/inherited state does not implement parsing external DTDs or entity fragments; feeding those inputs still raises NotImplementedError. Namespace maps cannot preserve redundant same-URI declarations or arbitrary declaration order. Reparse settings do not provide full Expat deferred-callback timing or buffered-WASM performance/security parity. The bounded local validation did not run broad lifecycle/GC, allocation-failure, entity-expansion, external-resolution or network suites. The isolated constructor methods create at most three parsers without feeding XML or explicitly invoking GC. Reviewed reads use three exact local canonical fixtures. Audit hooks provide defense in depth, not complete audit-event coverage or kernel isolation. The shared XMLGenerator method passed in four memory-backed variants in local validation; its file-writing variant was deliberately unrun locally. CI subsequently exercised the full SAX module; this is not a claim that all unselected markers are resolved. Commit hooks cspell alone was skipped for the initial XML correction commit under explicit user authorization. The normal Git commit ran conflict checking, Ruff format/check, redundant-test-patches and rustfmt successfully. Prettier reported no applicable files under normal merge-hook selection. The separate exception for #9342 was not reused; no broader hook waiver applies. For the one-line Python-only follow-up, the normal Git commit ran with SKIP unset: conflict checking, Ruff format/check and redundant-test-patches passed. Rustfmt, cspell and Prettier naturally reported no applicable files. No further hook exception was used. AI assistance: dot assisted with extraction, canonical migration, source review and bounded validation. The exact model version is not exposed.

Open Graph Description: Summary Replace the earlier vendored implementation with an independent, non-vendored XML compatibility split from #8954. Keep the existing registry xml 1.4.0 dependency and its existing expansion...

X Description: Summary Replace the earlier vendored implementation with an independent, non-vendored XML compatibility split from #8954. Keep the existing registry xml 1.4.0 dependency and its existing expansion...

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

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:3d17e94d-85b7-b502-fc5b-5be49b511c33
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idCAF6:2C4BED:3618F68:44BE829:6B01E6D7
html-safe-nonce4cf0b602f9fdd51fc21bbcbf0adaf74207f70436fdc3c0a4914bbbd222582b6e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQUY2OjJDNEJFRDozNjE4RjY4OjQ0QkU4Mjk6NkIwMUU2RDciLCJ2aXNpdG9yX2lkIjoiNTcwNDI4NDI1Mjg2ODM3OTc1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac9407bc5273727b371bf135d027d4c2452b3e1df5e43877a13f98aac551a43b6b
hovercard-subject-tagpull_request:4915619926
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/9197/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 Replace the earlier vendored implementation with an independent, non-vendored XML compatibility split from #8954. Keep the existing registry xml 1.4.0 dependency and its existing expansion...
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-targetcanary-1
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/RustPython/RustPython/pull/9197/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F9197%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%2F9197%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/9197/files
Reloadhttps://github.com/RustPython/RustPython/pull/9197/files
Reloadhttps://github.com/RustPython/RustPython/pull/9197/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/xml-backend-315https://github.com/youknowdot/RustPython/tree/split/xml-backend-315
Conversation 6 https://github.com/RustPython/RustPython/pull/9197
Commits 5 https://github.com/RustPython/RustPython/pull/9197/commits
Checks 29 https://github.com/RustPython/RustPython/pull/9197/checks
Files changed https://github.com/RustPython/RustPython/pull/9197/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9197/files
Align XML backend and canonical libraries with Python 3.15 https://github.com/RustPython/RustPython/pull/9197/files#top
Show all changes 5 commits https://github.com/RustPython/RustPython/pull/9197/files
8293b00 Align XML parsing and libraries with Python 3.15 youknowdot Oct 19, 2026 https://github.com/RustPython/RustPython/pull/9197/commits/8293b008765cdb0771b34a9931a93ad399ffd14e
73b1c69 Retire proven XML guards and sync canonical consumers youknowdot Oct 19, 2026 https://github.com/RustPython/RustPython/pull/9197/commits/73b1c698f76011abdb597bda58a025a4a6e2bb51
1576b65 Rebase vendored xml onto 1.4.0 youknowone Oct 21, 2026 https://github.com/RustPython/RustPython/pull/9197/commits/1576b65e70cf00a02c352f67a2976048fb882d65
dcff68b Replace vendored XML split with registry-backed compatibility youknowdot Oct 27, 2026 https://github.com/RustPython/RustPython/pull/9197/commits/dcff68be451106be0de358b266152b424c837eda
4eb7a68 Remove stale SAX external resolver expected failure youknowdot Oct 27, 2026 https://github.com/RustPython/RustPython/pull/9197/commits/4eb7a6889f08c93c6b459f7daeba7bae82364aac
Clear filters https://github.com/RustPython/RustPython/pull/9197/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9197/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9197/files
test_minidom.py https://github.com/RustPython/RustPython/pull/9197/files#diff-f73c8c572aa3351079f3e594b5c0f1c34e20e9e1e7dd8f5474cbe745dfd9f003
test_pulldom.py https://github.com/RustPython/RustPython/pull/9197/files#diff-58bdd9391aa1251642081f6e88f78c64c9d17596b855b293588d894aeb94ad5f
test_pyexpat.py https://github.com/RustPython/RustPython/pull/9197/files#diff-bdb65b60742876d0828ee1d7f2c168d36fa02cc202ace32d27c46a7b4a17605d
test_sax.py https://github.com/RustPython/RustPython/pull/9197/files#diff-849099ae522fd1e278d65ffb7cdc29866e97ec8e8b03ea5ef72121b6ccb46d1c
test_xml.py https://github.com/RustPython/RustPython/pull/9197/files#diff-fe3b1407d9669dfd5e997e92106c88607d72385c4f577be9825d3183e731c3a6
test_xml_etree.py https://github.com/RustPython/RustPython/pull/9197/files#diff-cd2315ff25ab49e653d363de2d213e390ecb1b01bbc86e2be3b700db4b0bf454
__init__.py https://github.com/RustPython/RustPython/pull/9197/files#diff-7233d3b7e183e198816856f342b5d660951544a33641236cff0d6c87fe4a3537
pulldom.py https://github.com/RustPython/RustPython/pull/9197/files#diff-bd9fb06c478c969b24e5c7ac2092b037de2920c88b17df2c6e22a2201d6f802b
ElementPath.py https://github.com/RustPython/RustPython/pull/9197/files#diff-56ca169a1475bf20cb2fd63e5e5f0e6ad4b4471bcc4f56eeea80a183c17f1161
expatreader.py https://github.com/RustPython/RustPython/pull/9197/files#diff-5b3b82b41c313d185766413a8553fb784970e7851cdf1d57ecf4edb9108f30f4
handler.py https://github.com/RustPython/RustPython/pull/9197/files#diff-baf9f286e54f4038dd8cd4b73516af231ad4a0b3173cf8bc56306306797bfdab
utils.py https://github.com/RustPython/RustPython/pull/9197/files#diff-34c6890d4496d64ae92adf20a3cdb34c78bd62293e00e4376de0fdf8f0a133d8
elementtree.rs https://github.com/RustPython/RustPython/pull/9197/files#diff-12e3ee061fcf107011823a4f5e3d07ed2c3b4328009cf508345e347624e826b6
pyexpat.rs https://github.com/RustPython/RustPython/pull/9197/files#diff-7f4c525df38078045fcc6955c53f774ac806800c790e024f06fd3ce2b188f33b
Lib/test/test_minidom.pyhttps://github.com/RustPython/RustPython/pull/9197/files#diff-f73c8c572aa3351079f3e594b5c0f1c34e20e9e1e7dd8f5474cbe745dfd9f003
View file https://github.com/youknowdot/RustPython/blob/4eb7a6889f08c93c6b459f7daeba7bae82364aac/Lib/test/test_minidom.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9197/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9197/files#diff-f73c8c572aa3351079f3e594b5c0f1c34e20e9e1e7dd8f5474cbe745dfd9f003
https://github.com/RustPython/RustPython/pull/9197/files#diff-f73c8c572aa3351079f3e594b5c0f1c34e20e9e1e7dd8f5474cbe745dfd9f003
https://github.com/RustPython/RustPython/pull/9197/files#diff-f73c8c572aa3351079f3e594b5c0f1c34e20e9e1e7dd8f5474cbe745dfd9f003
https://github.com/RustPython/RustPython/pull/9197/files#diff-f73c8c572aa3351079f3e594b5c0f1c34e20e9e1e7dd8f5474cbe745dfd9f003
https://github.com/RustPython/RustPython/pull/9197/files#diff-f73c8c572aa3351079f3e594b5c0f1c34e20e9e1e7dd8f5474cbe745dfd9f003
https://github.com/RustPython/RustPython/pull/9197/files#diff-f73c8c572aa3351079f3e594b5c0f1c34e20e9e1e7dd8f5474cbe745dfd9f003
https://github.com/RustPython/RustPython/pull/9197/files#diff-f73c8c572aa3351079f3e594b5c0f1c34e20e9e1e7dd8f5474cbe745dfd9f003
https://github.com/RustPython/RustPython/pull/9197/files#diff-f73c8c572aa3351079f3e594b5c0f1c34e20e9e1e7dd8f5474cbe745dfd9f003
Lib/test/test_pulldom.pyhttps://github.com/RustPython/RustPython/pull/9197/files#diff-58bdd9391aa1251642081f6e88f78c64c9d17596b855b293588d894aeb94ad5f
View file https://github.com/youknowdot/RustPython/blob/4eb7a6889f08c93c6b459f7daeba7bae82364aac/Lib/test/test_pulldom.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9197/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9197/files#diff-58bdd9391aa1251642081f6e88f78c64c9d17596b855b293588d894aeb94ad5f
https://github.com/RustPython/RustPython/pull/9197/files#diff-58bdd9391aa1251642081f6e88f78c64c9d17596b855b293588d894aeb94ad5f
https://github.com/RustPython/RustPython/pull/9197/files#diff-58bdd9391aa1251642081f6e88f78c64c9d17596b855b293588d894aeb94ad5f
https://github.com/RustPython/RustPython/pull/9197/files#diff-58bdd9391aa1251642081f6e88f78c64c9d17596b855b293588d894aeb94ad5f
https://github.com/RustPython/RustPython/pull/9197/files#diff-58bdd9391aa1251642081f6e88f78c64c9d17596b855b293588d894aeb94ad5f
https://github.com/RustPython/RustPython/pull/9197/files#diff-58bdd9391aa1251642081f6e88f78c64c9d17596b855b293588d894aeb94ad5f
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9197/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9197/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.