Skip to content

Commit 13b288e

Browse files
committed
Docs: Describe csv.reader conversions for all quoting modes
1 parent dc0b1f8 commit 13b288e

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎Doc/library/csv.rst‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,10 @@ The :mod:`!csv` module defines the following functions:
6767
dialect. For full details about the dialect and formatting parameters, see
6868
section :ref:`csv-fmt-params`.
6969

70-
Each row read from the csv file is returned as a list of strings. No
71-
automatic data type conversion is performed unless the :data:`QUOTE_NONNUMERIC` format
72-
option is specified (in which case unquoted fields are transformed into floats).
70+
By default, each row read from the csv file is returned as a list of strings.
71+
The :data:`QUOTE_NONNUMERIC` and :data:`QUOTE_STRINGS` quoting options convert
72+
non-empty unquoted fields to floats. The :data:`QUOTE_NOTNULL` and
73+
:data:`QUOTE_STRINGS` options convert empty unquoted fields to ``None``.
7374

7475
A short usage example::
7576

0 commit comments

Comments
 (0)