diff options
author | Cheryl Sabella <cheryl.sabella@gmail.com> | 2018-03-04 23:06:57 (GMT) |
---|---|---|
committer | Ned Deily <nad@python.org> | 2018-03-04 23:06:57 (GMT) |
commit | 18fd89246333bfa1b76c1623df689214f3ce2bf3 (patch) | |
tree | fc71bc65cc5244f6ca124c973c3858ee594a7290 /Doc/whatsnew | |
parent | 74382a3f175ac285cc924a73fd758e8dc3cc41bb (diff) | |
download | cpython-18fd89246333bfa1b76c1623df689214f3ce2bf3.zip cpython-18fd89246333bfa1b76c1623df689214f3ce2bf3.tar.gz cpython-18fd89246333bfa1b76c1623df689214f3ce2bf3.tar.bz2 |
bpo-30147: Add re.escape changes to 3.7 What's New (GH-5978)
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r-- | Doc/whatsnew/3.7.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.7.rst b/Doc/whatsnew/3.7.rst index 46f4f13..9e65488 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`.) |