title: Python's enum equivalent
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/36932/whats-the-best-way-to-implement-an-enum-in-python">What&rsquo;s the best way to implement an &lsquo;enum&rsquo; in Python?</a>  </p>
  </blockquote>
  
  
  
  <p>What is the Python idiom for a list of differently indexed names (like Enum in C/C++ or Java)?</p>
  
  <p>Clarification: I want a property of a value to be set to a restricted range, such as card suites <code>Heart, Club, Spade, Diamond</code>. I could represent it with an int in range 0..3, but it would allow out of range input (like 15).</p>