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. |
| 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. |
int allocated from a shared counter in order to keep track
of the order in which _Constants
are instantiated.
str giving the name of this constant; only set once the
constant is initialized by _ConstantsContainer.
_ConstantsContainer
subclass this constant belongs to; None until the constant is
initialized by that subclass.
_Constant.| Parameters | container | The _ConstantsContainer
subclass this constant is part of. |
| name | The name of this constant in its container. | |
| value | The value of this constant; not used, as named constants have no value apart from their identity. |