Skip to content

Commit ef69605

Browse files
committed
Update csv docs
1 parent 41202a2 commit ef69605

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Doc/library/csv.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -434,9 +434,10 @@ Writer Objects
434434

435435
:class:`Writer` objects (:class:`DictWriter` instances and objects returned by
436436
the :func:`writer` function) have the following public methods. A *row* must be
437-
an iterable of strings or numbers for :class:`Writer` objects and a dictionary
438-
mapping fieldnames to strings or numbers (by passing them through :func:`str`
439-
first) for :class:`DictWriter` objects. Note that complex numbers are written
437+
an iterable of strings, numbers or bytes for :class:`Writer` objects and a dictionary
438+
mapping fieldnames to strings, numbers or bytes (by passing them through :func:`str`
439+
first) for :class:`DictWriter` objects. Note that bytes will be written according to
440+
the encoding scheme of the output file. Also note that complex numbers are written
440441
out surrounded by parens. This may cause some problems for other programs which
441442
read CSV files (assuming they support complex numbers at all).
442443

0 commit comments

Comments
 (0)