… /site-packages/easydict/__init__.py", line 122, in __init__
setattr(self, k, v)
TypeError: attribute name must be string, not 'tuple'
Obviously there is not mapping/processing for «non-stringable» keys,
and it is OK for top dict
but we still need EasyDict to transform nested dicts, etc.
So would be be great if:
Just dont set attributes if key is nonstringable (one line patch try/except, or something)
provide optional mapping functions as (EasyDict parameter) for such keys.
Lets consider an example:
Now we get exception:
Obviously there is not mapping/processing for «non-stringable» keys, and it is OK for top dict but we still need EasyDict to transform nested dicts, etc.
So would be be great if: