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

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

Known subclasses: twisted.python.constants.NamedConstant, twisted.python.constants.ValueConstant

Instance Variables_indexA int allocated from a shared counter in order to keep track of the order in which _Constants are instantiated.
nameA str giving the name of this constant; only set once the constant is initialized by _ConstantsContainer.
_containerThe _ConstantsContainer subclass this constant belongs to; only set once the constant is initialized by that subclass.
Method __init__ Undocumented
Method __get__ Ensure this constant has been initialized before returning it.
Method __repr__ Return text identifying both which constant this is and which collection it belongs to.
Method _realize Complete the initialization of this _Constant.
def __init__(self): (source)
Undocumented
def __get__(self, oself, cls): (source)
Ensure this constant has been initialized before returning it.
def __repr__(self): (source)
Return text identifying both which constant this is and which collection it belongs to.
def _realize(self, container, name, value): (source)
Complete the initialization of this _Constant.
ParameterscontainerThe _ConstantsContainer subclass this constant is part of.
nameThe name of this constant in its container.
valueThe value of this constant; not used, as named constants have no value apart from their identity.
API Documentation for Twisted, generated by pydoctor at 2012-02-14 18:17:43.