title: Python Enums with duplicate values
body: <p>I'm having trouble working with an Enum where some attributes have the same value. I think Enums are so new to python that I can't find any other reference to this issue. In any case, let's say I have the following</p>
  
  <pre><code>class CardNumber(Enum):
      ACE      = 11
      TWO      = 2
      THREE    = 3
      FOUR     = 4
      FIVE     = 5
      SIX      = 6
      SEVEN    = 7
      EIGHT    = 8
      NINE     = 9
      TEN      = 10
      JACK     = 10
      QUEEN    = 10
      KING     = 10
  </code></pre>
  
  <p>Clearly these are the card numbers and their corresponding values in black jack. The ten through king have the same value. But if I do something like <code>print(CardNumber.QUEEN)</code>, I get back <code>&lt;CardNumber.TEN: 10&gt;</code>. What's more, if I iterate over these, it simply iterates over unique values.</p>
  
  <pre><code>&gt;&gt;&gt; for elem in CardNumber:
  ...     print(elem)
  CardNumber.ACE
  CardNumber.TWO
  CardNumber.THREE
  CardNumber.FOUR
  CardNumber.FIVE
  CardNumber.SIX
  CardNumber.SEVEN
  CardNumber.EIGHT
  CardNumber.NINE
  CardNumber.TEN
  </code></pre>
  
  <p>How can I get around this issue? I want CardNumber.QUEEN and CardNumber.TEN to be unique, and both appear in any iteration. The only thing I could think of was to give each attribute a second value which would act as a distinct id, but that seems unpythonic.</p>