From 13b288edcd364bddfcd90135037f27e231dbc456 Mon Sep 17 00:00:00 2001 From: esadomer <54475303+esadomer@users.noreply.github.com> Date: Tue, 29 Sep 2026 17:34:34 +0300 Subject: [PATCH] Docs: Describe csv.reader conversions for all quoting modes --- Doc/library/csv.rst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Doc/library/csv.rst b/Doc/library/csv.rst index 869c6a5f96a1f2a..b4d0c62e379413a 100644 --- a/Doc/library/csv.rst +++ b/Doc/library/csv.rst @@ -67,9 +67,10 @@ The :mod:`!csv` module defines the following functions: dialect. For full details about the dialect and formatting parameters, see section :ref:`csv-fmt-params`. - Each row read from the csv file is returned as a list of strings. No - automatic data type conversion is performed unless the :data:`QUOTE_NONNUMERIC` format - option is specified (in which case unquoted fields are transformed into floats). + By default, each row read from the csv file is returned as a list of strings. + The :data:`QUOTE_NONNUMERIC` and :data:`QUOTE_STRINGS` quoting options convert + non-empty unquoted fields to floats. The :data:`QUOTE_NOTNULL` and + :data:`QUOTE_STRINGS` options convert empty unquoted fields to ``None``. A short usage example::