title: Python enum34 access by name
body: <p>I am using the Enum backport <a href="https://pypi.python.org/pypi/enum34">enum34</a> with Python 2.7.</p>
  
  <p>According to the documentation it should be possible to access enum members by their name, using item access.  That is, the following should work:</p>
  
  <pre><code>from enum import Enum
  
  class Foo(Enum):
      bar = 1
      baz = 2
  
  print(Foo['bar'])
  </code></pre>
  
  <p>However, when I run the code I get this error in the last line:</p>
  
  <blockquote>
    <p>TypeError: 'type' object has no attribute '<code>__getitem__</code>'</p>
  </blockquote>
  
  <p>Am I missing something here or is this functionallity just not implemented in the 2.7 backport?</p>