diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2014-10-10 08:06:31 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2014-10-10 08:06:31 (GMT) |
commit | 7438e4b56fa6a34a021f11e1220331e841419b96 (patch) | |
tree | 5adea0024d47e6816a9e771423e247faeffab0f6 /Doc/whatsnew | |
parent | 365e28238f3ccde7f9024a37c212381746748d54 (diff) | |
download | cpython-7438e4b56fa6a34a021f11e1220331e841419b96.zip cpython-7438e4b56fa6a34a021f11e1220331e841419b96.tar.gz cpython-7438e4b56fa6a34a021f11e1220331e841419b96.tar.bz2 |
Issue 1519638: Now unmatched groups are replaced with empty strings in re.sub()
and re.subn().
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r-- | Doc/whatsnew/3.5.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.5.rst b/Doc/whatsnew/3.5.rst index feca241..319284a 100644 --- a/Doc/whatsnew/3.5.rst +++ b/Doc/whatsnew/3.5.rst @@ -223,6 +223,9 @@ re * Number of capturing groups in regular expression is no longer limited by 100. (Contributed by Serhiy Storchaka in :issue:`22437`.) +* Now unmatched groups are replaced with empty strings in :func:`re.sub` + and :func:`re.subn`. (Contributed by Serhiy Storchaka in :issue:`1519638`.) + shutil ------ |