gh-141510, PEP 814: Add frozendict support to pickle by vstinner · Pull Request #144967 · python/cpython
I will try to update my PR later to address other comments.
What about frozendict views and iterators? Are they copyable/pickleable?
keys, values and items views cannot be copied nor serialized by pickle.
Ah, it seems like it's possible to serialize a frozendict iterator.
Are there tests for deepcopying?
test_copy.test_deepcopy_frozendict() tests frozendict deepcopy.
I am surprised that there is no separate test_frozendict.py.
Ah. It was simple to add frozendict tests to existing test_dict. Maybe we can create test_frozendict later once we will add more tests.