Title: Preserve Expat qualified names without namespace expansion by youknowdot · Pull Request #9070 · RustPython/RustPython · GitHub
Open Graph Title: Preserve Expat qualified names without namespace expansion by youknowdot · Pull Request #9070 · RustPython/RustPython
X Title: Preserve Expat qualified names without namespace expansion by youknowdot · Pull Request #9070 · RustPython/RustPython
Description: Current revision Targets main after #8950, with one logical commit: d8a7620ae8b971a85f87d095d78ba95b6c5bba96 (parent d88c9350fb5de38b8c3be74ba8b53c8dd68a9b8f). The unique patch is byte-identical to the prior reviewed head and now includes main's merged #9082 shared CI fix; original author attribution and assistance trailers are retained. No files under Lib/ are changed. Normal hooks, whitespace checks, and independent tree/history review passed. The temporary [skip ci] marker is removed and normal CI is enabled for this final head. No new local build or runtime test is claimed. Validation recorded below belongs to earlier revisions unless explicitly stated otherwise. Rebased once after #9082 merged to repair the shared Python 3.15 IO reference failure. Normal commit hooks and exact range-diff/patch-equivalence checks pass. Exact-head hosted CI is running; no additional local runtime validation is claimed. Summary Extract the independent raw-prefix branch from #8954's Expat name helper. When namespace_separator is omitted or None, preserve qualified element and attribute names such as p:x and p:a. Existing namespace-expanded names remain unchanged. The four-line production change keeps the existing helper signature and all four call sites. It does not add namespace triplets, backend changes, namespace callbacks, or parser configuration changes. Reference: CPython 3.14.8 ParserCreate contract, also present in 3.14.7. Validation Independent source, safety, and final-diff review; normal commit hooks. Four bounded Python cases pass CPython 3.14.7 and 3.14.8: no namespace expansion/nonempty separator, each with dictionary/ordered attributes. The previous native baseline fails the qualified-name assertion as expected. The focused cases use one small in-memory ASCII document, fresh parsers, one final Parse call, and collecting handlers. No DTD, entity, file/network, unsupported triplet combination, or reentrant callback tests are involved. Known backend differences in retaining root xmlns attributes and enforcing namespace bindings are outside this patch. The regression checks all element names and the complete child attribute container without claiming full non-namespace Expat parity. Additional native validation passed: native build, all four focused cases, 2 reference/native pytest cases, and 5 unchanged canonical tests (namespace/ordered-attribute properties, legal/empty separator construction, and plain-name interning). Stdlib and separate C-API Clippy passed with warnings denied. The broader canonical Expat suite was not run because it includes unrelated DTD/entity/lifecycle tests. Full workspace and non-Linux runtime validation were not run locally. hosted CI is temporarily skipped.
Open Graph Description: Current revision Targets main after #8950, with one logical commit: d8a7620ae8b971a85f87d095d78ba95b6c5bba96 (parent d88c9350fb5de38b8c3be74ba8b53c8dd68a9b8f). The unique patch is byte-identical to...
X Description: Current revision Targets main after #8950, with one logical commit: d8a7620ae8b971a85f87d095d78ba95b6c5bba96 (parent d88c9350fb5de38b8c3be74ba8b53c8dd68a9b8f). The unique patch is byte-identical to...
Opengraph URL: https://github.com/RustPython/RustPython/pull/9070
X: @github
Domain: github.com
| react-profiling | 0 |
| react-import-map | react,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-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:5145961f-1c8b-8c3f-4b7a-ef52ed446458 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 8D4C:2D40DE:2DDF7B3:3A6E6CD:6B01F930 |
| html-safe-nonce | 0f952f2d793a736ce41141f0e334d6e6c73829776558ba3124ee319e471fada1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RDRDOjJENDBERToyRERGN0IzOjNBNkU2Q0Q6NkIwMUY5MzAiLCJ2aXNpdG9yX2lkIjoiMjgxNTc0MDMyNTc5OTI2MjUxMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 95bf069a032d47adbb9d47831a740bf954e2c32a66f8dd9406377327faf439ba |
| hovercard-subject-tag | pull_request:4811540641 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/RustPython/RustPython/pull/9070/files |
| twitter:image | https://avatars.githubusercontent.com/u/336763669?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/336763669?s=400&v=4 |
| og:image:alt | Current revision Targets main after #8950, with one logical commit: d8a7620ae8b971a85f87d095d78ba95b6c5bba96 (parent d88c9350fb5de38b8c3be74ba8b53c8dd68a9b8f). The unique patch is byte-identical to... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git |
| octolytics-dimension-user_id | 39710557 |
| octolytics-dimension-user_login | RustPython |
| octolytics-dimension-repository_id | 135201145 |
| octolytics-dimension-repository_nwo | RustPython/RustPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 135201145 |
| octolytics-dimension-repository_network_root_nwo | RustPython/RustPython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width