From 0deaf23252bdc274bd79fd2f504aab26178f743a Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Sun, 2 Aug 2026 08:49:20 +0300 Subject: [PATCH] gh-89024: Document the 3.10 change in escaping the csv escapechar Add a versionchanged note for the escapechar itself being escaped. --- Doc/library/csv.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Doc/library/csv.rst b/Doc/library/csv.rst index 81949261c563d04..af22ecaac93d8ce 100644 --- a/Doc/library/csv.rst +++ b/Doc/library/csv.rst @@ -481,6 +481,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.