From 7004e7fbffbbfde5c5e287dcb6f398d7cad301e0 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Thu, 13 Aug 2026 13:02:52 +0300 Subject: [PATCH] gh-105116: Document that an escaped csv quotechar does not cause quoting (GH-155073) (cherry picked from commit 3cc891f7ae71ab1fed3e00ec83baadc42db1eb1e) Co-authored-by: Serhiy Storchaka 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 1ecaec296b000e1..810ba42d412f553 100644 --- a/Doc/library/csv.rst +++ b/Doc/library/csv.rst @@ -360,6 +360,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