title: Does dictionary's clear() method delete all the item related objects from memory?
body: <p>If a dictionary contains mutable objects or objects of custom classes (say a queryset, or a even a  DateTime), then will calling <code>clear()</code> on the dictionary delete these objects from memory?
  Does it behave differently than looping through the dict and <code>del</code>eting them?</p>
  
  <p>eg.
  consider</p>
  
  <pre><code>class MyClass(object):
      '''Test Class.'''
  
  my_obj_1 = MyClass()
  my_obj_2 = MyClass()
  
  my_dict = { 'foo' : my_obj_1, 'bar' : my_obj_2 }
  </code></pre>
  
  <p>then is</p>
  
  <pre><code>my_dict.clear()
  </code></pre>
  
  <p>same as</p>
  
  <pre><code>for key in my_dict.keys():
      del my_dict[key]
  </code></pre>
  
  <p>?</p>