parameters: (self, nameOrIndex)
return_statement: return Operation(operation, self.__sessions)
docstring: Args:
              nameOrIndex (Name or str or int): Name or index of the operation
  
          Returns:
              Operation: The specified operation.
  
          Raises:
              Exception: If ``nameOrIndex`` is a string or a :class:`Name` and
                  ``hasOperation(nameOrIndex) != True``, or if ``nameOrIndex`` is
                  an integer and ``nameOrIndex >= numOperations()``.
docstring_summary: Args:
              nameOrIndex (Name or str or int): Name or index of the operation
docstring_tokens: Args : nameOrIndex ( Name or str or int ) : Name or index of the operation
function: def getOperation(self, nameOrIndex):
          """
          Args:
              nameOrIndex (Name or str or int): Name or index of the operation
  
          Returns:
              Operation: The specified operation.
  
          Raises:
              Exception: If ``nameOrIndex`` is a string or a :class:`Name` and
                  ``hasOperation(nameOrIndex) != True``, or if ``nameOrIndex`` is
                  an integer and ``nameOrIndex >= numOperations()``.
          """
  
          if not isinstance(nameOrIndex, int):
              names = getNamePair(nameOrIndex)
              errCode, operation = internals.blpapi_Service_getOperation(
                  self.__handle, names[0], names[1])
              _ExceptionUtil.raiseOnError(errCode)
              return Operation(operation, self.__sessions)
          errCode, operation = internals.blpapi_Service_getOperationAt(
              self.__handle,
              nameOrIndex)
          _ExceptionUtil.raiseOnError(errCode)
          return Operation(operation, self.__sessions)
function_tokens: def getOperation ( self , nameOrIndex ) : if not isinstance ( nameOrIndex , int ) : names = getNamePair ( nameOrIndex ) errCode , operation = internals . blpapi_Service_getOperation ( self . __handle , names [ 0 ] , names [ 1 ] ) _ExceptionUtil . raiseOnError ( errCode ) return Operation ( operation , self . __sessions ) errCode , operation = internals . blpapi_Service_getOperationAt ( self . __handle , nameOrIndex ) _ExceptionUtil . raiseOnError ( errCode ) return Operation ( operation , self . __sessions )