title: Python, merge multi-level dictionaries
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/7204805/python-dictionaries-of-dictionaries-merge">python: Dictionaries of dictionaries merge</a>  </p>
  </blockquote>
  
  
  
  <pre><code>my_dict= {'a':1, 'b':{'x':8,'y':9}}
  other_dict= {'c':17,'b':{'z':10}}
  my_dict.update(other_dict)
  </code></pre>
  
  <p>results in:</p>
  
  <pre><code>{'a': 1, 'c': 17, 'b': {'z': 10}}
  </code></pre>
  
  <p>but i want this:</p>
  
  <pre><code>{'a': 1, 'c': 17, 'b': {'x':8,'y':9,'z': 10}}
  </code></pre>
  
  <p>How can i do this? (possibly in a simple way?)</p>