parameters: (cls, name, value)
docstring: Registers a new enumeration.
  
          This is called by this module for each enumeration defined in
          enumerations. You should not need to call this outside this module.
docstring_summary: Registers a new enumeration.
docstring_tokens: Registers a new enumeration .
function: def register(cls, name, value):
          """Registers a new enumeration.
  
          This is called by this module for each enumeration defined in
          enumerations. You should not need to call this outside this module.
          """
          if value in cls._value_map:
              raise ValueError('%s value already registered: %d' % (cls.__name__,
                                                                    value))
          enum = cls(name, value)
          cls._value_map[value] = enum
          setattr(cls, name, enum)
function_tokens: def register ( cls , name , value ) : if value in cls . _value_map : raise ValueError ( '%s value already registered: %d' % ( cls . __name__ , value ) ) enum = cls ( name , value ) cls . _value_map [ value ] = enum setattr ( cls , name , enum )