Go to the latest version of this document.
Part of twisted.python.constants
View In Hierarchy
subclass contains constants which differ only in their names and
API Documentation for Twisted, generated by pydoctor at 2012-09-01 11:44:56.
Inherited from _ConstantsContainer:
||Classes representing constants containers are not intended to be
||Retrieve a constant by its name or raise a
there is no constant associated with that name.
||Iteration over a
results in all of the constants it contains.
||Specified by a
subclass to specify the type of constants allowed by that subclass.
bool tracking whether
_enumerants has been
initialized yet or not.
dict mapping the names of constants (eg
instances) found in the class definition to those instances. This is
initialized via the
descriptor the first time it is accessed.
||Find all of the
instances in the definition of
cls, initialize them with
constant values, and build a mapping from their names to them to attach to
||Construct the value for a new constant to add to this container.