Repository navigation
Closed
3 / 43 of 4 issues completedLabels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-featureA feature request or enhancementA feature request or enhancement
Description
Feature or enhancement
Proposal:
Issue created to track the implementation of https://peps.python.org/pep-0814/.
Has this already been discussed elsewhere?
No response given
Links to previous discussion of this feature:
No response
Linked PRs
- [WIP] gh-141510: PEP 814: Add built-in frozendict type #141508
- gh-141510, PEP 814: Add built-in frozendict type #144757
- gh-141510, PEP 814: Add frozendict support to json #144903
- gh-141510: Replace MappingProxyType with frozendict #144904
- gh-141510: Implement copy and deepcopy for frozendict #144905
- gh-141510: Use frozendict for errno.errorcode #144906
- gh-141510: Run regen-test-frozenmain for frozendict #144907
- gh-141510: Support frozendict in pprint #144908
- gh-141510: Use frozendict in the stdlib #144909
- gh-141510: Use frozendict in the _opcode_metadata #144910
- gh-141510: Update specializer to support frozendict with BINARY_SUBSCR #144911
- gh-141510: Add frozendict fast-path to the set type #144912
- gh-141510: Update mp_length of frozendict to use non atomic operation #144913
- gh-141510: Optimize {frozen}dict.fromkeys for frozendict #144915
- gh-141510: Optimize hash(frozendict) #144919
- gh-141510: Remove unncessary lock holding for frozendict repr #144920
- gh-141510: Change repr(frozendict) for empty dict #144921
- gh-141510: Fix
test_xpicklefailing with introduction offrozendict#144927 - gh-141510: Mention frozendict in dict documentation #144934
- gh-141510, PEP 814: Add frozendict support to pickle #144936
- gh-141510: Add frozendict_check_mutable() #144944
- gh-141510: Fix frozendict.fromkeys() for subclasses #144947
- gh-141510: Update specializer to support frozendict #144949
- gh-141510: Fix frozendict.fromkeys() for subclasses #144952
- gh-141510: Add can_modify_dict() in dictobject.c #144955
- gh-141510: Update Whats News for frozendict #144961
- gh-141510: Fix frozendict.fromkeys() for dict subclasses #144962
- gh-141510, PEP 814: Add frozendict support to pickle #144967
- gh-141510: Update ftscalingbench to support frozendict #144999
- gh-141510: Document ParameterizedMIMEHeader.params change #145003
- gh-141510: Fix copy.deepcopy() for recursive frozendict #145027
- gh-145122: Add _GUARD_NOS_ANY_DICT to prevent STORE_SUBSCR_DICT on frozendict #145039
- gh-141510: Fix test_xpickle for Python 3.14 and older #145069
- gh-141510: Test frozendict C API #145081
- gh-141510: Check argument in PyDict_MergeFromSeq2() #145082
- gh-141510: Check argument in PyDict_Contains() #145083
- gh-141510: Test frozendict in test_capi.test_dict #145084
- gh-141510: Change dict_unhashable_type() error message for frozendict #145085
- gh-141510: support frozendict's in the C decimal module #145165
- gh-141510: Update PyDict_Copy documentation with note on frozendict #145249
- gh-141510: Return frozendict unmodified in PyDict_Copy() #145505
- gh-141510: Optimize PyDict_Copy() for frozendict #145509
- gh-141510: Add frozendict support to python-gdb.py #145511
- gh-141510: Always return a dict in PyDict_Copy() #145517
- gh-141510: Don't accept frozendict in PyDict_Watch() #145529
- gh-141510: Add PyAnyDict_AsNewDict() function #145531
- gh-141510: Update PyDict C API doc for frozendict #145533
- gh-141510: Fix frozendict.items() ^ frozendict.items() #145535
- gh-141510: Complete What's New in Python 3.15 for frozendict #145537
- gh-141510: No longer accept frozendict in PyDict_Copy() #145542
- gh-141510: Change marshal version to 6 #145551
- gh-141510: Raise TypeError in PyDict_SetItem() on frozendict #145564
- gh-141510: Support
frozendictinplistlib#145590 - gh-141510: Optimize frozendict(frozendict) #145592
- gh-141510: Avoid critical section on frozendict copy #145920
- gh-141510: Document isinstance change for frozendict in What's New #146107
- gh-141510 Update mapping methods in abstract.c to accept frozendict #150692
- gh-141510 Document and test frozendict class matching behaviour #150799
- [3.15] gh-141510 Document and test frozendict class matching behaviour (GH-150799) #151701
- [3.15] gh-141510 Add frozendict fast paths to abstract.c (GH-150692) #151704
- gh-141510: Update
marshalmodule comment withfrozendictsupport #153655 - [3.15] gh-141510: Update
marshalmodule comment withfrozendictsupport (GH-153655) #153681 - gh-141510: Document frozendict support in json #155929
- [3.15] gh-141510: Document frozendict support in json (gh-155929) #155933
Reacted by kalvdans, Chengfeng Xie, Triang-jyed-driung and Piotr Karmelita
Metadata
Metadata
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-featureA feature request or enhancementA feature request or enhancement
Activity
pythongh-141510: Run regen-all for frozendict
pythongh-141510: Support frozendict in pprint
pythongh-141510: Use frozendict in the stdlib
pythongh-141510: Use frozendict in the stdlib
pythongh-141510: Use frozendict in the _opcode_metadata
pythongh-141510: Update specialzier to support frozendict with BINARY…
pythongh-141510: Add frozendict fast-path to the set type
pythongh-141510: Update mp_length of frozendict to use non atomic ope…
pythongh-141510: Optimize {frozen}dict.fromkeys for frozendict
gh-141510: Update mp_length of frozendict to use non atomic operation (…
pythongh-141510: Optimize hash(frozendict)
pythongh-141510: Optimize hash(frozendict)
pythongh-141510: Remove unncessary lock holding for frozendict repr
gh-141510: Remove unncessary lock holding for frozendict repr (gh-144920
pythongh-141510: Change repr(frozendict) for empty dict
Merge remote-tracking branch 'origin/pythongh-141510-specializer' into …
gh-141510: Optimize hash(frozendict) (#144919)
gh-141510: Change repr(frozendict) for empty dict (#144921)
gh-141510: Update `test_xpickle` for `frozendict` (#144927)
pythongh-141510: Mention frozendict in dict documentation
pythongh-141510: Mention frozendict in dict documentation
gh-141510: Optimize {frozen}dict.fromkeys for frozendict (gh-144915)
pythongh-141510, PEP 814: Add frozendict support to pickle
gh-141510: Mention frozendict in dict documentation (#144934)
pythongh-141510: Add frozendict_check_mutable()
pythongh-141510: Fix frozendict.fromkeys() for subclasses
gh-141510: Implement copy and deepcopy for frozendict (#144905)
pythongh-141510: Update specializer to support frozendict
pythongh-141510: Fix frozendict.fromkeys() for subclasses
pythongh-141510: Add can_modify_dict() in dictobject.c
pythongh-141510: Add can_modify_dict() in dictobject.c
gh-141510: Add frozendict fast-path to the set type (#144912)
gh-141510: Add can_modify_dict() in dictobject.c (#144955)
pythongh-141510: Update Whats News for frozzendict
gh-141510: Fix frozendict.fromkeys() for subclasses (#144952)
gh-141510: Update specializer to support frozendict (gh-144949)
pythongh-141510: Fix frozendict.fromkeys() for dict subclasses
gh-141510: Fix frozendict.fromkeys() for dict subclasses (#144962)
pythongh-141510, PEP 814: Add frozendict support to pickle
pythongh-141510: Use frozendict in the stdlib
gh-141510: Replace MappingProxyType with frozendict (#144904)
gh-141510: Update Whats News for frozendict (gh-144961)
gh-141510: Update ftscalingbench to support frozendict (gh-144999)
pythongh-141510: Document ParameterizedMIMEHeader.params change
gh-141510: Document ParameterizedMIMEHeader.params change (#145003)
pythongh-141510: Fix copy.deepcopy() for recursive frozendict
pythongh-141510: Add _GUARD_NOS_ANY_DICT to prevent STORE_SUBSCR_DICT…
pythongh-141510: Add _GUARD_NOS_ANY_DICT to prevent STORE_SUBSCR_DICT…
gh-141510, PEP 814: Add frozendict support to pickle (#144967)
pythongh-141510: Fix test_xpickle for Python 3.14 and older
hugovk commentedon Feb 21, 2026
See also:
gh-141510, PEP 814: Add frozendict support to json (#144903)
gh-141510: Fix test_xpickle for Python 3.14 and older (#145069)
pythongh-141510: Test frozendict C API
pythongh-141510: Test frozendict C API
gh-141510: Fix copy.deepcopy() for recursive frozendict (#145027)
pythongh-141510: Check argument in PyDict_MergeFromSeq2()
pythongh-141510: Check argument in PyDict_Contains()
gh-141510: Test frozendict C API (#145081)
gh-141510: Support frozendict in pprint (#144908)
gh-141510: Check argument in PyDict_MergeFromSeq2() (#145082)
gh-141510: Check argument in PyDict_Contains() (#145083)
pythongh-141510: Test frozendict in test_capi.test_dict
pythongh-141510: Change dict_unhashable_type() error message for froz…
gh-141510: Test frozendict in test_capi.test_dict (#145084)
gh-141510: Change dict_unhashable_type() error message for frozendict (…
hugovk commentedon Feb 21, 2026
Oops, didn't mean to close this!
STORE_SUBSCR_DICTallows silent mutation offrozendictafter adaptive specialization #145122 as a duplicate of this issuefrozendictbe added to Argument Clinic? #145079STORE_SUBSCR_DICTallows silent mutation offrozendictafter adaptive specialization #145122 as a duplicate of this issuepythongh-141510: support frozendict's in the C decimal module
Merge remote-tracking branch 'upstream/main' into pythongh-141510-fix
corona10 commentedon Feb 25, 2026
@vstinner Since the PEP is marked as Final, I think we can close this issue once #145165
is merged. For any future PRs, we can open a new issue.
gh-141510: Update `PyDict_Copy` documentation with note on `frozendic…
corona10 commentedon Feb 26, 2026
I am closing the issue with following criteria.
#141510 (comment)
gh-141510: support frozendict's in the C decimal module (gh-145165)
pythongh-141510, PEP 814: Add built-in frozendict type (python#144757)
pythongh-141510: Update mp_length of frozendict to use non atomic ope…
pythongh-141510: Remove unncessary lock holding for frozendict repr (p…
pythongh-141510: Optimize hash(frozendict) (python#144919)
pythongh-141510: Change repr(frozendict) for empty dict (python#144921)
pythongh-141510: Update `test_xpickle` for `frozendict` (python#144927)
pythongh-141510: Optimize {frozen}dict.fromkeys for frozendict (pytho…
pythongh-141510: Mention frozendict in dict documentation (python#144934
pythongh-141510: Implement copy and deepcopy for frozendict (python#1…
pythongh-141510: Add frozendict fast-path to the set type (python#144912
pythongh-141510: Add can_modify_dict() in dictobject.c (python#144955)
pythongh-141510: Fix frozendict.fromkeys() for subclasses (python#144952
pythongh-141510: Update specializer to support frozendict (pythongh-1…
pythongh-141510: Fix frozendict.fromkeys() for dict subclasses (pytho…
pythongh-141510: Replace MappingProxyType with frozendict (python#144904
pythongh-141510: Update Whats News for frozendict (pythongh-144961)
pythongh-141510: Update ftscalingbench to support frozendict (pythong…
pythongh-141510: Document ParameterizedMIMEHeader.params change (pyth…
pythongh-141510, PEP 814: Add frozendict support to pickle (python#14…
pythongh-141510, PEP 814: Add frozendict support to json (python#144903)
pythongh-141510: Fix test_xpickle for Python 3.14 and older (python#1…
pythongh-141510: Fix copy.deepcopy() for recursive frozendict (python…
pythongh-141510: Test frozendict C API (python#145081)
pythongh-141510: Support frozendict in pprint (python#144908)
pythongh-141510: Check argument in PyDict_MergeFromSeq2() (python#145082
pythongh-141510: Check argument in PyDict_Contains() (python#145083)
pythongh-141510: Test frozendict in test_capi.test_dict (python#145084)
pythongh-141510: Change dict_unhashable_type() error message for froz…
pythongh-141510: Update `PyDict_Copy` documentation with note on `fro…
pythongh-141510: support frozendict's in the C decimal module (python…
pythongh-141510: Return frozendict unmodified in PyDict_Copy()
gh-141510: Return frozendict unmodified in PyDict_Copy() (#145505)
pythongh-141510: Optimize PyDict_Copy() for frozendict
pythongh-141510: Add frozendict support to python-gdb.py
gh-141510: Optimize PyDict_Copy() for frozendict (#145509)
pythongh-141510: Always return a dict in PyDict_Copy()
pythongh-141510: Always return a dict in PyDict_Copy()
gh-141510: Add frozendict support to python-gdb.py (#145511)
pythongh-141510: Don't accept frozendict in PyDict_Watch()
pythongh-141510: Add PyFrozenDict_AsDict() function
gh-141510: Don't accept frozendict in PyDict_Watch() (#145529)
gh-141510: Use frozendict in the _opcode_metadata (#144910)
encukou commentedon Mar 5, 2026
Could you update docs of
PyDictfunctions to make it clear/explicit whether they take frozendict or not?pythongh-141510: Update PyDict C API doc for frozendict
vstinner commentedon Mar 5, 2026
Good idea! I wrote #145533 to update the
PyDictC API documentation to mentionfrozendictsupport.pythongh-141510: Fix frozendict.items() ^ frozendict.items()
pythongh-141510: Complete What's New in Python 3.15 for frozendict
gh-141510: Fix frozendict.items() ^ frozendict.items() (#145535)
pythongh-141510: No longer accept frozendict in PyDict_Copy()
pythongh-141510: No longer accept frozendict in PyDict_Copy()
encukou commentedon Mar 5, 2026
The changes to
marshalneed a new marshal version. See #126829 for an example.gh-141510: No longer accept frozendict in PyDict_Copy() (#145542)
pythongh-141510: Change marshal version to 6
pythongh-141510: Change marshal version to 6
vstinner commentedon Mar 5, 2026
Oh, I wasn't aware of
marshalversionning. Thanks for the pointer to the previousmarshalversion increased, it's very useful. I wrote #145551 to increase the version to 6 and add more tests.gh-141510: Complete What's New in Python 3.15 for frozendict (#145537)
pythongh-141510: Raise TypeError in PyDict_SetItem() on frozendict
pythongh-141510: Raise TypeError in PyDict_SetItem() on frozendict
pythongh-141510: Raise TypeError in PyDict_SetItem() on frozendict
gh-141510: Change marshal version to 6 (#145551)
gh-141510: Use frozendict in the stdlib (#144909)
pythongh-141510: Optimize frozendict(frozendict)
pythongh-141510: Optimize frozendict(frozendict)
gh-141510: Optimize frozendict(frozendict) (#145592)
gh-141510: Raise TypeError in PyDict_SetItem() on frozendict (#145564)
gh-141510: Update PyDict C API doc for frozendict (#145533)
pythongh-141510: Avoid critical section on frozendict copy