title: How to get Python to tell equal integers apart
body: <p>Have a bit of a problem distinguishing between identical integers.</p>
  
  <p>In the following (which is obviously a trivial case) a, b, c are integers. I wish to create a dicionary, diction, which will contain {a: 'foo', b: 'bar', c: 'baz'}</p>
  
  <pre><code>diction = {} 
  for i in (a, b, c):
      j = ('foo', 'bar', 'baz')[(a, b, c).index(i)]
      diction[i] = j
  </code></pre>
  
  <p>All runs very nicely until, for example, a and b are the same: the third line will give index 0 for both a and b, resulting in j = 'foo' for each case.</p>
  
  <p>I know lists can be copied by</p>
  
  <pre><code>list_a = [1, 2, 3]
  list_b = list(list_a)
  </code></pre>
  
  <p>or</p>
  
  <pre><code>list_b = list_a[:]
  </code></pre>
  
  <p>So, is there any way of maybe doing this with my identical integers?</p>
  
  <p>(I tried making one a float, but the value remains the same , so that doesn't work.)</p>