Popular recipes by Robin Bryce http://code.activestate.com/recipes/users/4020598/2006-12-21T10:28:56-08:00ActiveState Code Recipesrecursively update a dictionary without hitting "Python recursion limit" (Python)
2006-12-21T10:28:56-08:00Robin Brycehttp://code.activestate.com/recipes/users/4020598/http://code.activestate.com/recipes/499335-recursively-update-a-dictionary-without-hitting-py/
<p style="color: grey">
Python
recipe 499335
by <a href="/recipes/users/4020598/">Robin Bryce</a>
.
Revision 3.
</p>
<p>This function recursively walks the items and values of two dict like objects. At each level when a key exists in both, and each value is a dict, then the destination dict is updated from the source dict usiing the builtin dict.update method. After the operation all keys and values from the source, at any level, will be referenced in the destination.</p>