title: Python 3 Enums with Function Values
body: <p>I noticed an oddity in the Python 3 Enums (<a href="https://docs.python.org/3/library/enum.html" rel="noreferrer">link</a>).<br>
  If you set the value of an Enum to a function, it prevents the attribute from being wrapped as an Enum object, which prevents you from being able to use the cool features like <code>EnumCls['AttrName']</code> to dynamically load the attribute. </p>
  
  <p>Is this a bug? Done on purpose?<br>
  I searched for a while but found no mention of restricted values that you can use in an Enum.</p>
  
  <p>Here is sample code that displays the issue:</p>
  
  <pre><code>class Color(Enum):
      Red = lambda: print('In Red')
      Blue = lambda: print('In Blue')
  
  print(Color.Red)    # &lt;function&gt; - should be Color.Red via Docs
  print(Color.Blue)   # &lt;function&gt; - should be Color.Bluevia Docs
  print(Color['Red']) # throws KeyError - should be Color.Red via Docs
  </code></pre>
  
  <p>Also, this is my first time asking, so let me know if there's anything I should be doing differently! And thanks for the help!</p>