

def NewRow(self, value=''):
    'Fetches a new, empty row, with headers populated.\n\n    Args:\n      value: Initial value to set each row entry to.\n\n    Returns:\n      A Row() object.\n    '
    newrow = self.row_class()
    newrow.row = (self.size + 1)
    newrow.table = self
    headers = self._Header()
    for header in headers:
        newrow[header] = value
    return newrow

dataset/ETHPy150Open google/textfsm/texttable.py TextTable.NewRow/original