From 45a42fecadd1c9e0ef4a02ae6ae25d90f25d5e18 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Thu, 13 Aug 2026 13:05:33 +0300 Subject: [PATCH] gh-89024: Document the 3.10 change in escaping the csv escapechar (GH-155067) Add a versionchanged note for the escapechar itself being escaped. (cherry picked from commit a697faf45077f7fb24edf4f2f75b8aa09d873dcd) Co-authored-by: Serhiy Storchaka --- Doc/library/csv.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Doc/library/csv.rst b/Doc/library/csv.rst index 64065a75917af83..e782e61cb6eb031 100644 --- a/Doc/library/csv.rst +++ b/Doc/library/csv.rst @@ -466,6 +466,10 @@ Dialects support the following attributes: On reading, the *escapechar* removes any special meaning from the following character. It defaults to :const:`None`, which disables escaping. + .. versionchanged:: 3.10 + Previously the *escapechar* itself was not escaped, + which lost it on reading. + .. versionchanged:: 3.11 An empty *escapechar* is not allowed.