Part of twisted.python View Source
| Class | NamedConstant | NamedConstant
defines an attribute to be a named constant within a collection defined by 
a Names 
subclass. | 
  
| Class | Names | A Names 
subclass contains constants which differ only in their names and 
identities. | 
  
| Class | ValueConstant | ValueConstant
defines an attribute to be a named constant within a collection defined by 
a Values 
subclass. | 
  
| Class | Values | A Values
subclass contains constants which are associated with arbitrary values. | 
  
| Class | FlagConstant | FlagConstant
defines an attribute to be a flag constant within a collection defined by a
Flags 
subclass. | 
  
| Class | Flags | A Flags 
subclass contains constants which can be combined using the common bitwise 
operators (|, &, etc) similar to a 
bitvector from a language like C. | 
  
| Class | _Constant | |
| Class | _ConstantsContainerType | _ConstantsContainerType
is a metaclass for creating constants container classes. | 
  
| Class | _ConstantsContainer | _ConstantsContainer
is a class with attributes used as symbolic constants.  It is up to 
subclasses to specify what kind of constants are allowed. | 
  
| Function | _flagOp | Implement a binary operator for a FlagConstant
instance. | 
  
FlagConstant
instance.| Parameters | op | A two-argument callable implementing the binary operation.  For example, 
operator.or_. | 
| left | The left-hand FlagConstant
instance. | |
| right | The right-hand FlagConstant
instance. | |
| Returns | A new FlagConstant
instance representing the result of the operation. | |