Skip to content

Commit 3cc891f

Browse files
gh-105116: Document that an escaped csv quotechar does not cause quoting (GH-155073)
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent 1370f8a commit 3cc891f

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

390392

391393
.. data:: QUOTE_NONNUMERIC

0 commit comments

Comments
 (0)