nickstanisha / nesteddict

A nested dictionary data structure for Python
MIT License
0 stars 0 forks source link

Nested update/merge? #2

Closed nickstanisha closed 7 years ago

nickstanisha commented 7 years ago

Consider the design implications of allowing users to perform a nested merge

>>> print(d)
{'a': {'b': {'c': 1, 'd': 2}}}
>>> print(e)
{'a': {'b': {'c': 2, 'e': 4}}}
>>> d.nested_update(e)
>>> print(d)
{'a': {'b': {'c': 2, 'd': 2, 'e': 4}}}