Repository navigation
Preserve Unicode in shared qualified type names - #9700
Conversation
Reuse WTF-8 concatenation through native type metadata, diagnostics, warning context and representation consumers. Assisted-by: OpenAI Codex:model version not exposed
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Assisted-by: OpenAI Codex:model version not exposed
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Summary
Preserve Python string contents throughout shared qualified type names and their consumers.
PyType::fully_qualified_namehelper. Static types use their native slot name; heap types read stored module/qualname metadata without metaclass or string-subclass callbacks.wtf8_concat!mechanism rather than duplicate formatters.This is 367 substantive changed lines across 23 production Rust files. No Python, Lib, test, marker or workflow files change.
Verification
d220409a13b77de7a6c30abe16ea90db01528edc, includingObjects/typeobject.c, numeric, weakref and ZoneInfo consumers.cargo checkand ordinary all-targetscargo clippyfor host-env, VM and stdlib with threading passed. Clippy reports exactly the four existing, unchanged-main diagnostics in posix/elementtree; none added or suppressed.Native RustPython execution, full workspace/C-API tests and platform runtime suites were not run. Hosted CI remains the runtime validation gate; this draft does not claim a complete runtime suite pass.
Composition and limits
Compatible formatting companions are prepared for the additional consumers in #9693, #9697 and #9698. Preserve #9693's extracted hash-error helper, #9688's traceback arguments and #9690's removal of the old unraisable block when composing those changes. Older infrastructure overlaps were checked separately; this does not promise conflict-free merging of every historical refactor.
ZoneInfo's separately cached file-object repr still uses its existing String storage, and the native stderr fallback is not a new lossless OS-encoding implementation. These paths are not claimed fixed. The Rust helper's return type changes, so out-of-tree Rust callers may need to use WTF-8-aware formatting too.
AI assistance: OpenAI Codex performed source analysis, implementation, reference probing and independent review. Model version is not exposed. This contribution follows the maintainer-directed Python 3.15 upgrade work.
Summary by CodeRabbit