title: Future-compatible enums in 2.7?
body: <p>Many methods of implementing enums are shown in the answers to <a href="https://stackoverflow.com/questions/36932/how-can-i-represent-an-enum-in-python">this question</a>. However, <a href="http://www.python.org/dev/peps/pep-0435/" rel="noreferrer">PEP0435</a> is out now and describes how Enum and IntEnum will become official in Python 3.4.</p>
  
  <p>My question is not about the advantages/disadvantages of particular ways of simulating enums in Python. Rather I'd like advice on the most forward-compatibile way for those of us still stuck in 2.X releases.</p>
  
  <p>flufl.enum was originally going to be the reference implementation but was dropped due to members not being instances of the type (and of allowing subclasses with additional members at the same time). The latter wouldn't affect much day-to-day but perhaps the former would cause more issues?</p>
  
  <p>Are there any libraries out there that more closely resemble what is being added to 3.4 and are compatible with 2.7+?</p>