<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 4/28/2013 4:37 PM, Steven D'Aprano
      wrote:<br>
    </div>
    <blockquote cite="mid:517DB2C8.9090002@pearwood.info" type="cite">I
      have also suggested that that the enum package provide a decorator
      <br>
      which can be used to explicitly flag values to <b
        class="moz-txt-star"><span class="moz-txt-tag">*</span>not<span
          class="moz-txt-tag">*</span></b> be turned into
      <br>
      enum values. See here:
      <br>
      <br>
      <a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://mail.python.org/pipermail/python-dev/2013-April/125641.html">http://mail.python.org/pipermail/python-dev/2013-April/125641.html</a>
      <br>
      <br>
      Even if the Enum class doesn't support this feature, I ask that it
      be
      <br>
      written in such a way that a subclass could add it (i.e. please
      expose
      <br>
      a public method for deciding what to exclude).
    </blockquote>
    <br>
    That last comment is very interesting to me... I think it would be
    good if the enum implementation doesn't prevent the creation of a
    subclass of integer enumerations which can be extended so that when
    arithmetic is done on them, that new enumeration values and names
    can be added to the collection (think flag fields). The add ones
    might have names that do not follow the rules for identifiers.<br>
  </body>
</html>