[Python-checkins] [3.7] bpo-30147: Add re.escape changes to 3.7 What's New (GH-5978) (GH-5979)

Ned Deily webhook-mailer at python.org
Sun Mar 4 18:22:35 EST 2018


https://github.com/python/cpython/commit/f92478d57a6b4014dcc0882d43b534fae1e7b929
commit: f92478d57a6b4014dcc0882d43b534fae1e7b929
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: Ned Deily <nad at python.org>
date: 2018-03-04T18:22:32-05:00
summary:

[3.7] bpo-30147: Add re.escape changes to 3.7 What's New (GH-5978) (GH-5979)

(cherry picked from commit 18fd89246333bfa1b76c1623df689214f3ce2bf3)

Co-authored-by: Cheryl Sabella <cheryl.sabella at gmail.com>

files:
M Doc/whatsnew/3.7.rst

diff --git a/Doc/whatsnew/3.7.rst b/Doc/whatsnew/3.7.rst
index 46f4f13aab47..9e65488e37d6 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`.)



More information about the Python-checkins mailing list