FrozenList
Build a mutable list then lock it to preserve its contents.
aio-libs · Code and testing
GitHub projectOpen source Open on GitHubHow to try it
In a Python virtual environment, install frozenlist==1.8.0. Add two imaginary items, freeze the list and confirm a later edit is rejected.
What we tested
1.8.0. Add two imaginary items, freeze the list and confirm a later edit is rejected. Preserved both sample items and rejected the edit after freezing.