python-frozendict
python-frozendict copied to clipboard
A simple immutable mapping for python
PyPI is nice, but I prefer real sources from git, not the preprocessed ones.
``` from frozendict import frozendict a = frozendict({'a': 1}) b = a.copy() b['c'] = 1 ``` throws the following error: ``` Traceback (most recent call last): File "", line 1,...
In code using PEP 484, it would be nice to be able to do this: ```python def spam() -> FrozenDict[Text, int]): return frozendict({'eggs': 1}) ``` The CamelCase name is chosen...
Theses are two symmetrical functions to make entire structures immutable and mutable respectively. Converting `dict` and `OrderedDict` will behave as expected. All lists are turned into tuples and vice versa....
Programmatic version information is missing. ```python import frozendict frozendict.__version__ ```
Tests?
Would be great to have a simple test suite.
Hi, it would be great to take advantage of the immutability of the type and return self instead of creating a new instance when no new fields are passed to...