diff options
| author | Serhiy Storchaka <storchaka@gmail.com> | 2017-05-05 08:53:40 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-05-05 08:53:40 +0300 |
| commit | 898ff03e1e7925ecde3da66327d3cdc7e07625ba (patch) | |
| tree | 977fc4b98c0e85816348cebd3b12026407c368b6 /Doc/library/re.rst | |
| parent | 647c3d381e67490e82cdbbe6c96e46d5e1628ce2 (diff) | |
| download | cpython-git-898ff03e1e7925ecde3da66327d3cdc7e07625ba.tar.gz | |
bpo-30215: Make re.compile() locale agnostic. (#1361)
Compiled regular expression objects with the re.LOCALE flag no longer
depend on the locale at compile time. Only the locale at matching
time affects the result of matching.
Diffstat (limited to 'Doc/library/re.rst')
| -rw-r--r-- | Doc/library/re.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/library/re.rst b/Doc/library/re.rst index 0fa7196148..131f3722c3 100644 --- a/Doc/library/re.rst +++ b/Doc/library/re.rst @@ -559,6 +559,11 @@ form. :const:`re.LOCALE` can be used only with bytes patterns and is not compatible with :const:`re.ASCII`. + .. versionchanged:: 3.7 + Compiled regular expression objects with the :const:`re.LOCALE` flag no + longer depend on the locale at compile time. Only the locale at + matching time affects the result of matching. + .. data:: M MULTILINE |
