Wraps csv.writer with bool conversion, iterator support, and lesser memory use.
More...
|
| | __init__ (self, csvfile, dialect="excel", **fmtparams) |
| |
| | writerow (self, row) |
| | Writes the row to the writer’s file object.
|
| |
| | writerows (self, rows) |
| | Writes the rows to the writer’s file object.
|
| |
|
| | dialect = property |
| | A read-only description of the dialect in use by the writer.
|
| |
Wraps csv.writer with bool conversion, iterator support, and lesser memory use.
Definition at line 187 of file csv.py.
◆ __init__()
| __init__ |
( |
|
self, |
|
|
|
csvfile, |
|
|
|
dialect = "excel", |
|
|
** |
fmtparams |
|
) |
| |
- Parameters
-
| csvfile | file-like object with write() method |
| dialect | CSV dialect to use, one from csv.list_dialects() |
| fmtparams | override individual format parameters in dialect |
Definition at line 196 of file csv.py.
◆ writerow()
Writes the row to the writer’s file object.
Fields will be formatted according to the current dialect.
- Parameters
-
| row | iterable of field values |
- Returns
- return value of the call to the write method of the underlying file object
Definition at line 220 of file csv.py.
◆ writerows()
Writes the rows to the writer’s file object.
Fields will be formatted according to the current dialect.
- Parameters
-
| rows | iterable of iterables of field values |
Definition at line 251 of file csv.py.
◆ dialect
A read-only description of the dialect in use by the writer.
Definition at line 208 of file csv.py.
The documentation for this class was generated from the following file: