title: Getting value of enum on string conversion
body: <p>I have the following enum defined:</p>
  <pre><code>from enum import Enum
  class D(Enum):
      x = 1
      y = 2
  
  print(D.x)
  </code></pre>
  <p>now the printed value is</p>
  <pre><code>D.x
  </code></pre>
  <p>instead, I wanted the enum's value to be print</p>
  <pre><code>1
  </code></pre>
  <p>What can be done to achieve this functionality?</p>