Skip to content

Commit a189f22

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 b90caee commit a189f22

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
@@ -362,6 +362,8 @@ The :mod:`csv` module defines the following constants:
362362
Instructs :class:`writer` objects to only quote those fields which contain
363363
special characters such as *delimiter*, *quotechar*, ``'\r'``, ``'\n'``
364364
or any of the characters in *lineterminator*.
365+
If *doublequote* is :const:`False` and *escapechar* is set,
366+
the *quotechar* is escaped instead of causing the field to be quoted.
365367

366368

367369
.. data:: QUOTE_NONNUMERIC

0 commit comments

Comments
 (0)