From 0c6419f4c420011c7a53a16b834b3f4280cc9e91 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Sun, 2 Aug 2026 12:09:05 +0300 Subject: [PATCH] gh-105116: Document that an escaped csv quotechar does not cause quoting Co-Authored-By: Claude Opus 5 (1M context) --- Doc/library/csv.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Doc/library/csv.rst b/Doc/library/csv.rst index 81949261c563d0..1fb71b82743a37 100644 --- a/Doc/library/csv.rst +++ b/Doc/library/csv.rst @@ -377,6 +377,8 @@ The :mod:`!csv` module defines the following constants: Instructs :class:`writer` objects to only quote those fields which contain special characters such as *delimiter*, *quotechar*, ``'\r'``, ``'\n'`` or any of the characters in *lineterminator*. + If *doublequote* is :const:`False` and *escapechar* is set, + the *quotechar* is escaped instead of causing the field to be quoted. .. data:: QUOTE_NONNUMERIC