Package horizons :: Package ext :: Module enum :: Class Enum
[hide private]
[frames] | no frames]

Class Enum

source code

Enumerated type.

Instance Methods [hide private]
 
__init__(self, *keys, **kwargs)
Create an enumeration instance.
source code
 
__setattr__(self, name, value) source code
 
__delattr__(self, name) source code
 
__len__(self) source code
 
__getitem__(self, index) source code
 
__setitem__(self, index, value) source code
 
__delitem__(self, index) source code
 
__iter__(self) source code
 
__contains__(self, value) source code
 
get_item_for_string(self, key)
Get an enum value for a string @throws KeyError on key not found
source code
Class Methods [hide private]
 
get_extended(cls, base_enum, *keys, **kwargs) source code