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/library/re.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/library/re.rst')
-rw-r--r-- | Doc/library/re.rst | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Doc/library/re.rst b/Doc/library/re.rst index 218bbf8..a298d97 100644 --- a/Doc/library/re.rst +++ b/Doc/library/re.rst @@ -758,7 +758,12 @@ form. Unmatched groups are replaced with an empty string. .. versionchanged:: 3.6 - Unknown escapes consisting of ``'\'`` and an ASCII letter now are errors. + Unknown escapes in *pattern* consisting of ``'\'`` and an ASCII letter + now are errors. + + .. deprecated-removed:: 3.5 3.7 + Unknown escapes in *repl* consist of ``'\'`` and ASCII letter now raise + a deprecation warning and will be forbidden in Python 3.7. .. function:: subn(pattern, repl, string, count=0, flags=0) |