summaryrefslogtreecommitdiff
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-12-06 19:15:29 +0200
committerSerhiy Storchaka <storchaka@gmail.com>2016-12-06 19:15:29 +0200
commit9bd3adc7445d23ed7a85245d090278a452699aec (patch)
tree64f367ede8293f9e33bd066e4b0c8251b17939ea /Doc/whatsnew
parentfbe26ff9b0bac8511d5b31c3511fbd1ea24d9316 (diff)
downloadcpython-9bd3adc7445d23ed7a85245d090278a452699aec.tar.gz
Issue #27030: Unknown escapes in re.sub() replacement template are allowed
again. But they still are deprecated and will be disabled in 3.7.
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.6.rst5
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/whatsnew/3.6.rst b/Doc/whatsnew/3.6.rst
index 040a533da7..3c2ab12976 100644
--- a/Doc/whatsnew/3.6.rst
+++ b/Doc/whatsnew/3.6.rst
@@ -2021,8 +2021,9 @@ API and Feature Removals
------------------------
* Unknown escapes consisting of ``'\'`` and an ASCII letter in
- regular expressions will now cause an error. The :const:`re.LOCALE`
- flag can now only be used with binary patterns.
+ regular expressions will now cause an error. In replacement templates for
+ :func:`re.sub` they are still allowed, but deprecated.
+ The :const:`re.LOCALE` flag can now only be used with binary patterns.
* ``inspect.getmoduleinfo()`` was removed (was deprecated since CPython 3.3).
:func:`inspect.getmodulename` should be used for obtaining the module