Repository navigation
Align JSON array hooks and libraries with Python 3.15 - #9135
Conversation
Generate the JSON library and selected tests with update_lib from CPython d220409a13b77de7a6c30abe16ea90db01528edc, preserving native bootstrap workarounds and test markers. Exclude generated cache directories at the library copy boundary. 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
|
📦 Library DependenciesThe following Lib/ modules were modified. Here are their dependencies: :4: SyntaxWarning: invalid decimal literal dependencies:
dependent tests: (14 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: b9d2e73d39
ℹ️ 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".
| self.assertEqual(self.loads('[]'), []) | ||
| self.assertEqual(self.loads('""'), "") | ||
|
|
||
| def test_object_hook(self): |
There was a problem hiding this comment.
Remove direct test logic additions
This new test method, together with the added or rewritten methods in the other Lib/test/test_json files, changes assertions, test logic, and test data; repository policy restricts test-file edits to adding or removing expectedFailure markers. Please leave those test bodies unchanged rather than landing them as part of the JSON implementation.
AGENTS.md reference: AGENTS.md:L273-L279
Useful? React with 👍 / 👎.
Summary
array_hooksupport, including empty and nested arrays, callback error propagation, and the scanner's read-only hook member.scripts/update_lib. This also brings the matching immutable-container support into the Python implementation._from_serdeadapter.__pycache__directories out ofupdate_lib copy-libwhile preserving canonical source and asset files, with a tempfile-only regression test.Split from #8954. No dependency, ABI-export, workflow, or unrelated native changes.
Validation
At b9d2e73:
-D warnings.update_libregeneration produced the reviewed source hashes; native import/cache guards and existing markers remain intact.Each interpreter case ran in a separate 30-second/1-GiB process with exact library origins and native backend provenance checked. These are focused checks, not a full JSON/GC/UAF/large-input/recursion/CAPI suite. The reference interpreter's existing dirty build banner remains a metadata caveat despite the verified clean exact-final source checkout.
AI assistance
Prepared with OpenAI Codex under the requesting maintainer's direction. The runtime does not expose an exact model identifier; the commit records that limitation.
Summary by CodeRabbit
__pycache__directories while preserving files with that name and other files.