Repository navigation
Align OrderedDict views and sync pprint with CPython 3.15 - #9134
Conversation
Use dict view base payloads and inherited descriptors while preserving ordered iteration. Snapshot actual view iterators before rendering element reprs. Assisted-by: OpenAI Codex:model version unavailable
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
Import the related library update using scripts/update_lib migrate from d220409a13b77de7a6c30abe16ea90db01528edc, preserving exact final source bytes. Assisted-by: OpenAI Codex:model version unavailable
📦 Library DependenciesThe following Lib/ modules were modified. Here are their dependencies: :4: SyntaxWarning: invalid decimal literal dependencies:
dependent tests: (96 tests)
Legend:
|
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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e15a230514
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| pp = pprint.PrettyPrinter() | ||
|
|
||
| for icky in self.a, self.b, self.d, (self.d, self.d): | ||
| for icky in self.a, self.b, self.d, (self.d, self.d), self.e, self.v, self.m, self.dv: |
There was a problem hiding this comment.
Revert forbidden test-body changes
This upstream sync expands the existing test_knotted inputs and, elsewhere in the file, adds or changes test logic, assertions, and data; the repository policy permits test-file edits only for adding or removing expected-failure markers. Revert these test-body changes or express unsupported behavior with the allowed markers so the commit complies with the test policy.
AGENTS.md reference: AGENTS.md:L273-L279
Useful? React with 👍 / 👎.
Summary
Update
Lib/pprint.pyandLib/test/test_pprint.pytogether with their native prerequisite, using actualscripts/update_lib migrateimports from CPython 3.15.0 (d220409a13b77de7a6c30abe16ea90db01528edc). Both files are byte-for-byte identical to the pinned final git blobs. This adds final pprint mapping-view, frozendict, template and expansion support without hand-edited library changes.Validation
Validated on base
3ab5c0c2f207e335972cd16b776b9b522ffe7e0f:-D warnings) and normal commit hooks.Each runtime case ran in a fresh process with a 30-second timeout and 1-GiB address-space limit; no skips or expected failures. This is targeted validation, not the full test suite or a GC lifetime proof.
The latest main (
92e20da822ef511853d207da9ff2338e7c3a57f5) merges cleanly; its partial/vectorcall, tzdb, marshal and update_lib updates were not included in the local validation build.One existing type-registration discrepancy remains: public
__module__is correctlybuiltins, while the internal type dictionary contains a module entry (now_collections, previouslybuiltins; CPython has no such entry). This patch does not redesign module registration.Summary by CodeRabbit
...for recursive representations.