t.p.c.ValueConstant(_Constant) : class documentation

Part of twisted.python.constants View Source View In Hierarchy

ValueConstant defines an attribute to be a named constant within a collection defined by a Values subclass.

ValueConstant is only for use in the definition of Values subclasses. Do not instantiate ValueConstant elsewhere and do not subclass it.

Method __init__ Undocumented

Inherited from _Constant:

Instance Variable name A str giving the name of this constant; only set once the constant is initialized by _ConstantsContainer.
Method __repr__ Return text identifying both which constant this is and which collection it belongs to.
Method __lt__ Implements <. Order is defined by instantiation order.
Method __le__ Implements <=. Order is defined by instantiation order.
Method __gt__ Implements >. Order is defined by instantiation order.
Method __ge__ Implements >=. Order is defined by instantiation order.
Instance Variable _index A int allocated from a shared counter in order to keep track of the order in which _Constants are instantiated.
Instance Variable _container The _ConstantsContainer subclass this constant belongs to; None until the constant is initialized by that subclass.
Method _realize Complete the initialization of this _Constant.
def __init__(self, value): (source)
Undocumented
API Documentation for Twisted, generated by pydoctor at 2014-05-12 18:27:00.