diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-12-06 17:15:29 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-12-06 17:15:29 (GMT) |
commit | 53c53ea4c5440593a527bf3d106b5f7feebeed40 (patch) | |
tree | f02e42b90c60a91a4eabbc08d748704785288dd8 /Doc/whatsnew/3.6.rst | |
parent | b0f75c520ee882295b0d2884469056ebf0d0568b (diff) | |
download | cpython-53c53ea4c5440593a527bf3d106b5f7feebeed40.zip cpython-53c53ea4c5440593a527bf3d106b5f7feebeed40.tar.gz cpython-53c53ea4c5440593a527bf3d106b5f7feebeed40.tar.bz2 |
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/3.6.rst')
-rw-r--r-- | Doc/whatsnew/3.6.rst | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/whatsnew/3.6.rst b/Doc/whatsnew/3.6.rst index 040a533..3c2ab12 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 |