bpo-36645: Fix ambiguous formatting in re.sub() documentation (GH-12879)
![](https://secure.gravatar.com/avatar/cc7737cd64a84f1b5c61a160798e97ee.jpg?s=120&d=mm&r=g)
https://github.com/python/cpython/commit/5ebfa840a1c9967da299356733da41b5326... commit: 5ebfa840a1c9967da299356733da41b532688988 branch: master author: mollison <mollison@cs.unc.edu> committer: Berker Peksag <berker.peksag@gmail.com> date: 2019-04-22T01:14:45+03:00 summary: bpo-36645: Fix ambiguous formatting in re.sub() documentation (GH-12879) files: M Doc/library/re.rst diff --git a/Doc/library/re.rst b/Doc/library/re.rst index 4ac5dee14071..5ef72b535ce8 100644 --- a/Doc/library/re.rst +++ b/Doc/library/re.rst @@ -908,6 +908,7 @@ form. Unknown escapes in *repl* consisting of ``'\'`` and an ASCII letter now are errors. + .. versionchanged:: 3.7 Empty matches for the pattern are replaced when adjacent to a previous non-empty match.
participants (1)
-
Berker Peksag