original_docstring: Runs the given values in a separate Txn.
  
      Retries up to _RETRIES times on CONCURRENT_TRANSACTION errors.
  
      Args:
        values: A list of arguments to op.
        app: The app to create the Txn on.
        op: A function to run on each value in the Txn.
  
      Returns:
        The cost of the txn.
      
docstring: Runs the given values in a separate Txn.
  Retries up to _RETRIES times on CONCURRENT_TRANSACTION errors.
docstring_tokens: Runs the given values in a separate Txn . Retries up to _RETRIES times on CONCURRENT_TRANSACTION errors .
code: def _RunInTxn(self, values, app, op):
      """Runs the given values in a separate Txn.
  
      Retries up to _RETRIES times on CONCURRENT_TRANSACTION errors.
  
      Args:
        values: A list of arguments to op.
        app: The app to create the Txn on.
        op: A function to run on each value in the Txn.
  
      Returns:
        The cost of the txn.
      """
      retries = 0
      backoff = _INITIAL_RETRY_DELAY_MS / 1000.0
      while True:
        try:
          txn = self._BeginTransaction(app, False)
          for value in values:
            op(txn, value)
          return txn.Commit()
        except apiproxy_errors.ApplicationError, e:
          if e.application_error == datastore_pb.Error.CONCURRENT_TRANSACTION:
  
            retries += 1
            if retries <= _RETRIES:
              time.sleep(backoff)
              backoff *= _RETRY_DELAY_MULTIPLIER
              if backoff * 1000.0 > _MAX_RETRY_DELAY_MS:
                backoff = _MAX_RETRY_DELAY_MS / 1000.0
              continue
          raise
code_tokens: def _RunInTxn ( self , values , app , op ) : retries = 0 backoff = _INITIAL_RETRY_DELAY_MS / 1000.0 while True : try : txn = self . _BeginTransaction ( app , False ) for value in values : op ( txn , value ) return txn . Commit ( ) except apiproxy_errors . ApplicationError , e : if e . application_error == datastore_pb . Error . CONCURRENT_TRANSACTION : retries += 1 if retries <= _RETRIES : time . sleep ( backoff ) backoff *= _RETRY_DELAY_MULTIPLIER if backoff * 1000.0 > _MAX_RETRY_DELAY_MS : backoff = _MAX_RETRY_DELAY_MS / 1000.0 continue raise
short_docstring: Runs the given values in a separate Txn.
short_docstring_tokens: Runs the given values in a separate Txn .
comment: """Runs the given values in a separate Txn.
  
      Retries up to _RETRIES times on CONCURRENT_TRANSACTION errors.
  
      Args:
        values: A list of arguments to op.
        app: The app to create the Txn on.
        op: A function to run on each value in the Txn.
  
      Returns:
        The cost of the txn.
      """