https://github.com/python/cpython/commit/dab40a0c7d4f3789eba29a1b971ca44e31d496b2 commit: dab40a0c7d4f3789eba29a1b971ca44e31d496b2 branch: 3.13 author: Miss Islington (bot) <[email protected]> committer: serhiy-storchaka <[email protected]> date: 2026-08-13T10:09:39Z summary:
[3.13] gh-105116: Document that an escaped csv quotechar does not cause quoting (GH-155073) (GH-155684) (cherry picked from commit 3cc891f7ae71ab1fed3e00ec83baadc42db1eb1e) Co-authored-by: Serhiy Storchaka <[email protected]> Co-authored-by: Claude Opus 5 (1M context) <[email protected]> files: M Doc/library/csv.rst diff --git a/Doc/library/csv.rst b/Doc/library/csv.rst index 4b1223ce7d45b9..929d3f1926ff4a 100644 --- a/Doc/library/csv.rst +++ b/Doc/library/csv.rst @@ -371,6 +371,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 _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: [email protected]
