Skip to content

halfak/deep_merge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deep Merge

This library contains a simple utility for deep-merging dictionaries and the data structures they contain.

Example

>>> import deep_merge
>>>
>>> print(deep_merge.merge({'a': {'b': 10}}, {'a': {'c': 5}}))
{'a': {'b': 10, 'c': 5}}

Note that the first parameter is modified and will be assigned the return value.

>>> d1 = {}
>>> d2 = {'a': 1}
>>> deep_merge.merge(d1, d2)
>>> print(d1)
{'a': 1}

Author

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages