Implement PEP 814 frozendict - #8951
youknowdot wants to merge 1 commit into
Conversation
Add dictionary-owned frozen mapping storage, shared views and cached hashing, read-only execution globals, type namespace support, and stable dictionary C-API coverage. Add differential regressions against CPython 3.15rc2. Assisted-by: Codex:model-version-unavailable
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
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 |
📦 Library DependenciesThe following Lib/ modules were modified. Here are their dependencies: [x] test: cpython/Lib/test/test_dict.py (TODO: 2) dependencies: dependent tests: (no tests depend on dict) [ ] lib: cpython/Lib/copy.py dependencies:
dependent tests: (324 tests)
[x] lib: cpython/Lib/collections dependencies:
dependent tests: (334 tests)
Legend:
|
Summary
Implement the builtin
frozendictfrom PEP 814, characterized against CPython 3.15.0rc2.function.__globals__member layout; accept frozen type namespaces through a mutable class-namespace copyThe C-API work follows this crate's abi3/abi3t scope. New non-limited CPython
PyFrozenDict_*exports and type statics remain outside its current ABI architecture.Validation
AI-assisted with OpenAI Codex: implementation, regression tests, review, and local validation.