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

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

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

Instance Variable name A str giving the name of this constant; only set once the constant is initialized by _ConstantsContainer.
Method __init__ Undocumented
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.
_index =
A int allocated from a shared counter in order to keep track of the order in which _Constants are instantiated.
name =
A str giving the name of this constant; only set once the constant is initialized by _ConstantsContainer.
_container =
The _ConstantsContainer subclass this constant belongs to; None until the constant is initialized by that subclass.
def __init__(self): (source)
Undocumented
def __repr__(self): (source)
Return text identifying both which constant this is and which collection it belongs to.
def __lt__(self, other): (source)
Implements <. Order is defined by instantiation order.
ParametersotherAn object.
ReturnsNotImplemented if other is not a constant belonging to the same container as this constant, True if this constant is defined before other, otherwise False.
def __le__(self, other): (source)
Implements <=. Order is defined by instantiation order.
ParametersotherAn object.
ReturnsNotImplemented if other is not a constant belonging to the same container as this constant, True if this constant is defined before or equal to other, otherwise False.
def __gt__(self, other): (source)
Implements >. Order is defined by instantiation order.
ParametersotherAn object.
ReturnsNotImplemented if other is not a constant belonging to the same container as this constant, True if this constant is defined after other, otherwise False.
def __ge__(self, other): (source)
Implements >=. Order is defined by instantiation order.
ParametersotherAn object.
ReturnsNotImplemented if other is not a constant belonging to the same container as this constant, True if this constant is defined after or equal to other, otherwise False.
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 2014-05-12 18:27:00.