Skip to content

Commit 7004e7f

Browse files
serhiy-storchakaclaude
authored andcommitted
gh-105116: Document that an escaped csv quotechar does not cause quoting (GH-155073)
(cherry picked from commit 3cc891f) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent ed38a08 commit 7004e7f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Doc/library/csv.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,8 @@ The :mod:`!csv` module defines the following constants:
360360
Instructs :class:`writer` objects to only quote those fields which contain
361361
special characters such as *delimiter*, *quotechar*, ``'\r'``, ``'\n'``
362362
or any of the characters in *lineterminator*.
363+
If *doublequote* is :const:`False` and *escapechar* is set,
364+
the *quotechar* is escaped instead of causing the field to be quoted.
363365

364366

365367
.. data:: QUOTE_NONNUMERIC

0 commit comments

Comments
 (0)