On 04/13/2016 07:07 AM, Marko Rauhamaa wrote:
class Color(enum.Enum): red blue greenThis last one is to the point but raises a NameError.
Using the aenum library that last one is possible. It also has NamedConstant and a metaclass-derived NamedTuple! </shameless plug>
-- ~Ethan~ -- https://mail.python.org/mailman/listinfo/python-list