_ConstantsContainerType('', (object,), {})_ConstantsContainer
is a class with attributes used as symbolic constants. It is up to
subclasses to specify what kind of constants are allowed.Names subclass
contains constants which differ only in their names and identities.Values subclass
contains constants which are associated with arbitrary values.Flags subclass
contains constants which can be combined using the common bitwise operators
(|, &, etc) similar to a bitvector
from a language like C.ExceptionobjectFlagConstant
defines an attribute to be a flag constant within a collection defined by a
Flags subclass.NamedConstant
defines an attribute to be a named constant within a collection defined by
a Names subclass.ValueConstant
defines an attribute to be a named constant within a collection defined by
a Values subclass.type_ConstantsContainerType
is a metaclass for creating constants container classes.