

def _SetRow(self, new_values, row=0):
    'Sets the current row to new list.\n\n    Args:\n      new_values: List|dict of new values to insert into row.\n      row: int, Row to insert values into.\n\n    Raises:\n      TableError: If number of new values is not equal to row size.\n    '
    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/original