python-frozendict icon indicating copy to clipboard operation
python-frozendict copied to clipboard

A simple immutable mapping for python

Results 17 python-frozendict issues
Sort by recently updated
recently updated
newest added

**Issue: error thrown on module import** ``` >>> import frozendict Traceback (most recent call last): File "", line 1, in File "/home/crypt0xyc/projects/starknet-arb/.venv/lib/python3.10/site-packages/frozendict/__init__.py", line 16, in class frozendict(collections.Mapping): AttributeError: module 'collections'...

When frozendict is converted to string in python 3.9, it causes allocations of memory which can not be released with `gc.collect()` ``` import gc import psutil from frozendict import frozendict...

Can nested dictionaries be supported? Is this a bug or expected behavior to only support shallow dictionaries? ``` def test_frozen_dicts(): orig_sub = {'subkey': 'sA'} orig_top = {'topkey': 'tA', 'child': orig_sub}...

It seems the easiest way to accomplish this functionality [without a custom serializer](https://stackoverflow.com/a/31207881) would be to subclass `dict` and call `dict.__init__` in the frozendict `__init__`.

Hello! I have a question, and I'm wondering if this is just something that can be clarified prominently in documentation, or if it's something that can be changed in the...

@ppolewicz @lurch @eugene-eeo This project is seeing some activity lately (yay), I think it's time to add some tests. I incorporated test cases written in an earlier fork, linked by...

Make sure to close the README file in setup.py Remove useless imports Use the Black formatter on __init__.py Adapt the example code for Python 2 and 3 compatibility

All builtin types have a `__repr__` implementation that can be fed to `eval` to obtain the original Python value. This is on purpose. `frozendict` and `OrderedFrozendict` simply being an immutable...