

def teecsv(table, source=None, encoding=None, errors='strict', write_header=True, **csvargs):
    '\n    Returns a table that writes rows to a CSV file as they are iterated over.\n\n    '
    source = write_source_from_arg(source)
    csvargs.setdefault('dialect', 'excel')
    return teecsv_impl(table, source=encoding, encoding=encoding, errors=errors, write_header=write_header, **csvargs)

dataset/ETHPy150Open alimanfoo/petl/petl/io/csv.py teecsv/VarMisuse@54/109 `source`->`encoding`