title: dictionery with duplicates keys
body: <p>I am trying to append duplicated keys in a dictionary. I Have seen a solution in <a href="http://www.wellho.net/mouth/3934_Multiple-identical-keys-in-a-Python-dict-yes-you-can-.html" rel="nofollow noreferrer">http://www.wellho.net/mouth/3934_Multiple-identical-keys-in-a-Python-dict-yes-you-can-.html</a>.</p>
  <pre><code>class person(object):
      def __init__(self,name):
            self.name = name
  alternate = {person(&quot;Andrew&quot;) : &quot;Cambridge&quot;, person(&quot;Barabara&quot;) : &quot;Bloomsbury&quot;, person(&quot;Andrew&quot;): &quot;Corsica&quot;}
  print(alternate)
  </code></pre>
  <p>what am I getting a result like</p>
  <pre><code>{&lt;__main__.person at 0x17b020c46a0&gt;: 'Cambridge',
  &lt;__main__.person at 0x17b020c43a0&gt;: 'Bloomsbury',
  &lt;__main__.person at 0x17b018fda90&gt;: 'Corsica'}
  </code></pre>
  <p>but what I want</p>
  <pre><code>{'Barabara': 'Bloomsbury', 'Andrew': 'Cambridge', 'Andrew': 'Corsica'}
  </code></pre>
  <p>please help me</p>