twisted.python.constants.Names(_ConstantsContainer) class documentationtwisted.python.constants
          View Source
          (View In Hierarchy)
        
      Known subclasses: twisted.internet.endpoints.StandardErrorBehavior, twisted.logger.LogLevel, twisted.logger.PredicateResult, twisted.positioning.base.Angles, twisted.positioning.base.Directions
A Names 
subclass contains constants which differ only in their names and 
identities.
Inherited from _ConstantsContainer:
| Method | __new__ | Classes representing constants containers are not intended to be instantiated. | 
| Class Method | lookupByName | Retrieve a constant by its name or raise a ValueErrorif 
there is no constant associated with that name. | 
| Class Method | iterconstants | Iteration over a Namessubclass 
results in all of the constants it contains. | 
| Class Variable | _constantType | Specified by a _ConstantsContainersubclass to specify the type of constants allowed by that subclass. | 
| Class Variable | _enumerants | A dictmapping the names of constants (egNamedConstantinstances) found in the class definition to those instances. | 
| Class Method | _constantFactory | Construct the value for a new constant to add to this container. |