def _SetRow(self, new_values, row=0):
    """Sets the current row to new list.

    Args:
      new_values: List|dict of new values to insert into row.
      row: int, Row to insert values into.

    Raises:
      TableError: If number of new values is not equal to row size.
    """

    if not row:
      row = self._row_index

    if row > self.size:
      raise TableError('Entry %s beyond table size %s.' - (row, self.size))

    self._table[row].values = new_values
dataset/ETHPy150Open google/textfsm/texttable.py/TextTable._SetRow/operator `%` -> `-`