//usr/lib64/lib64//lib64//python2.7/ó
V
Qc @ sm d Z d d l Z d d
d „ ƒ YZ d d d „ ƒ YZ e d d i ƒ Z d „ Z e d k ri e ƒ n d S(
sC Enumeration metaclass.
XXX This is very much a work in progress.
iÿÿÿÿNt
EnumMetaClassc B s) e Z d Z d „ Z d „ Z d „ Z RS( sh Metaclass for enumeration.
To define your own enumeration, do something like
class Color(Enum):
red = 1
green = 2
blue = 3
Now, Color.red, Color.green and Color.blue behave totally
different: they are enumerated values, not integers.
Enumerations cannot be instantiated; however they can be
subclassed.
c C s“ x) | D]! } | j t k r t d ‚ q q Wt d „ | ƒ } | | _ | | _ i | _ x3 | j ƒ D]% \ } } t | | | ƒ | j |