Trees | Indices | Help |
|
---|
|
object --+ | type --+ | EnumMetaclass
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.
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from |
|
|||
Inherited from Inherited from |
|
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
|
repr(x)
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sat Aug 16 20:55:29 2008 | http://epydoc.sourceforge.net |