From 18fd89246333bfa1b76c1623df689214f3ce2bf3 Mon Sep 17 00:00:00 2001 From: Cheryl Sabella Date: Sun, 4 Mar 2018 18:06:57 -0500 Subject: [PATCH] bpo-30147: Add re.escape changes to 3.7 What's New (GH-5978) --- Doc/whatsnew/3.7.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Doc/whatsnew/3.7.rst b/Doc/whatsnew/3.7.rst index 46f4f13aab..9e65488e37 100644 --- a/Doc/whatsnew/3.7.rst +++ b/Doc/whatsnew/3.7.rst @@ -1214,6 +1214,10 @@ Changes in the Python API (Contributed by Serhiy Storchaka in :issue:`25054` and :issue:`32308`.) +* Change :func:`re.escape` to only escape regex special characters instead + of escaping all characters other than ASCII letters, numbers, and ``'_'``. + (Contributed by Serhiy Storchaka in :issue:`29995`.) + * :class:`tracemalloc.Traceback` frames are now sorted from oldest to most recent to be more consistent with :mod:`traceback`. (Contributed by Jesse Bakker in :issue:`32121`.) -- 2.50.1