<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-text-html" lang="x-western">
      <div class="moz-cite-prefix">On 04/26/2013 12:34 AM, Greg Ewing
        wrote:<br>
      </div>
      <blockquote cite="mid:517A2E1F.90001@canterbury.ac.nz" type="cite">Or

        if, as Guido says, the only sensible things to use <br>
        as enum values are ints and strings, just leave anything <br>
        alone that isn't one of those.<br>
      </blockquote>
      <br>
      The standard Java documentation on enums:<br>
      <blockquote> <a
          href="http://docs.oracle.com/javase/tutorial/java/javaOO/enum.html">http://docs.oracle.com/javase/tutorial/java/javaOO/enum.html</a></blockquote>
      has an example enum of a "Planet", a small record type containing
      mass and radius--each of which are floats.  I don't know whether
      or not it constitutes good programming, but I'd be crestfallen if
      Java enums were more expressive than Python enums ;-)<br>
      <br>
      FWIW I'm +0.5 on "the enum metaclass ignores callables and
      descriptors".  This seems reasonably Pythonic, much more so than
      "ignore everything except ints and strings".  And as long as we're
      special-casing it I think we should opt for flexibility. 
      Certainly I see nothing wrong with enums of float, complex,
      Decimal, and Fraction, so I don't see a good place to draw the
      line with a whitelist.<br>
      <br>
      <br>
      <i>/arry</i><br>
    </div>
  </body>
</html>