<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body text="#330033" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">On 5/19/2013 9:08 PM, Ethan Furman
      wrote:<br>
    </div>
    <blockquote cite="mid:5199A1AD.4000306@stoneleaf.us" type="cite">On
      05/19/2013 05:24 PM, Nick Coghlan wrote:
      <br>
      <blockquote type="cite">
        <br>
        This is the point I was trying to make: once you use IntEnum (as
        you
        <br>
        would in any case where you need bitwise operators), Enum gets
        out of
        <br>
        the way for everything other than __str__, __repr__, and one
        other
        <br>
        slot (that escapes me for the moment...).
        <br>
      </blockquote>
      <br>
      __getnewargs__ and __new__
      <br>
      <br>
      But if you do math, the result is no longer an Enum of any type.<br>
    </blockquote>
    <br>
    And thus completely loses the debugging benefits of having a nice
    __repr__.  IntEnum isn't useful for bitfields.<br>
  </body>
</html>