Repository navigation
Represent OrderedDict views with their contents - #9038
Conversation
Extract the Python 3.14-compatible view representation from RustPython#8954. Snapshot view elements before invoking their repr methods, preserve recursion handling, and cover each view in the existing collections snippet. Leave migration-specific mapping changes out. Assisted-by: OpenAI Codex:model identifier unavailable
|
Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configuration
📒 Files selected for processing (2)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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: f974c11161
ℹ️ 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".
|
|
||
|
|
||
| # OrderedDict views show their contents in insertion order, including recursion. | ||
| def check_ordered_dict_view_repr(): |
There was a problem hiding this comment.
Remove the prohibited snippet test changes
This block adds a new test function and multiple assertions to extra_tests/snippets/stdlib_collections.py, but the repository's test-code policy explicitly disallows changes to test assertions or logic and says the only permitted test-file edits are expected-failure decorator changes. Revert this added test block before merging.
AGENTS.md reference: AGENTS.md:L275-L279
Useful? React with 👍 / 👎.
Give OrderedDict keys, values, and items views their Python 3.14 representations, including contents and insertion order. Snapshot elements before calling their repr methods and preserve recursive-view handling.
Extracted from #8954 without its mapping/frozendict migration. One regression block in the existing collections snippet covers empty/populated views, recursion, mutation during repr, and repr exceptions.
Validation:
AI-assisted implementation, tests, and review with OpenAI Codex. Kept as a draft for CI and maintainer review.