]> granicus.if.org Git - python/commitdiff
[3.7] bpo-30147: Add re.escape changes to 3.7 What's New (GH-5978) (GH-5979)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 4 Mar 2018 23:22:32 +0000 (15:22 -0800)
committerNed Deily <nad@python.org>
Sun, 4 Mar 2018 23:22:32 +0000 (18:22 -0500)
(cherry picked from commit 18fd89246333bfa1b76c1623df689214f3ce2bf3)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
Doc/whatsnew/3.7.rst

index 46f4f13aab4798e8d573d4ffc61c5791515dbfc5..9e65488e37d6714c1dd1351df50e2d3d08e3c3d4 100644 (file)
@@ -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`.)