From 8549c4a2791269b937e7c56e8e78f4556c9f6c13 Mon Sep 17 00:00:00 2001 From: Andy Terrel Date: Wed, 21 May 2025 09:58:57 -0400 Subject: [PATCH 1/2] Adds note about csv quoting of booleans --- Doc/library/csv.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Doc/library/csv.rst b/Doc/library/csv.rst index 533cdf13974be6..d49bff307429b0 100644 --- a/Doc/library/csv.rst +++ b/Doc/library/csv.rst @@ -333,6 +333,9 @@ The :mod:`csv` module defines the following constants: Instructs :class:`reader` objects to convert all non-quoted fields to type *float*. + ```True``` and ```False``` are numeric types in Python so using this option will + not quote them. + .. data:: QUOTE_NONE From 99bb55abf3b55a5afdf9c8d2d361bedc2807d4ce Mon Sep 17 00:00:00 2001 From: "Andy R. Terrel" Date: Thu, 29 May 2025 06:00:37 -0500 Subject: [PATCH 2/2] Update csv.rst mistake with literal syntax --- Doc/library/csv.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/csv.rst b/Doc/library/csv.rst index d49bff307429b0..f444ff27d907c3 100644 --- a/Doc/library/csv.rst +++ b/Doc/library/csv.rst @@ -333,7 +333,7 @@ The :mod:`csv` module defines the following constants: Instructs :class:`reader` objects to convert all non-quoted fields to type *float*. - ```True``` and ```False``` are numeric types in Python so using this option will + ``True`` and ``False`` are numeric types in Python so using this option will not quote them.