https://github.com/python/cpython/commit/3cc891f7ae71ab1fed3e00ec83baadc42db1eb1e commit: 3cc891f7ae71ab1fed3e00ec83baadc42db1eb1e branch: main author: Serhiy Storchaka <[email protected]> committer: serhiy-storchaka <[email protected]> date: 2026-08-13T13:02:52+03:00 summary:
gh-105116: Document that an escaped csv quotechar does not cause quoting (GH-155073) 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 e78371f114e0a1..16ff9746f8f05a 100644 --- a/Doc/library/csv.rst +++ b/Doc/library/csv.rst @@ -386,6 +386,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]
