(testenv) $ python
Python 3.7.4 (default, Jul 11 2019, 01:08:00)
[Clang 10.0.1 (clang-1001.0.46.4)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import flatdict
This one works:
For example:
foo = {'foo': {'bar': 'baz', 'qux': 'corge'}}
is represented as:
>>> d = {'list': ['a', 'b', 'c',]}
>>> flatdict.FlatDict(d)
<FlatDict id=4354748368 {'list': ['a', 'b', 'c']}>"```
Am I correct to assume that flattening does not work for the lists on the first level? Or does the example assume using of FlatterDict here?
The example from the documentation on https://flatdict.readthedocs.io/en/stable/ does not work for me.
Setup:
This one works:
But his one does not work: