Skip to content

Commit dab40a0

Browse files
miss-islingtonserhiy-storchakaclaude
authored
[3.13] gh-105116: Document that an escaped csv quotechar does not cause quoting (GH-155073) (GH-155684)
(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 427dfa6 commit dab40a0

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

375377

376378
.. data:: QUOTE_NONNUMERIC

0 commit comments

Comments
 (0)