title: Difference between dict.clear() and assigning {} in Python
body: <p>In python, is there a difference between calling <code>clear()</code> and assigning <code>{}</code> to a dictionary? If yes, what is it?
  Example:<pre><code>d = {"stuff":"things"}
  d.clear()   #this way
  d = {}      #vs this way
  </code></pre></p>