diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2014-12-01 09:50:07 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2014-12-01 09:50:07 (GMT) |
commit | 22a309a43458eab762c0d0cf508ff6807fc9b980 (patch) | |
tree | aa14c89df35108d8ba5c22f254e739687816c664 /Doc/library/re.rst | |
parent | 720b8c9dd7e0d8f7e9a879cb3a2669db9eb506e1 (diff) | |
download | cpython-22a309a43458eab762c0d0cf508ff6807fc9b980.zip cpython-22a309a43458eab762c0d0cf508ff6807fc9b980.tar.gz cpython-22a309a43458eab762c0d0cf508ff6807fc9b980.tar.bz2 |
Issue #21032: Deprecated the use of re.LOCALE flag with str patterns or
re.ASCII. It was newer worked.
Diffstat (limited to 'Doc/library/re.rst')
-rw-r--r-- | Doc/library/re.rst | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Doc/library/re.rst b/Doc/library/re.rst index d1823aa..60ded8b 100644 --- a/Doc/library/re.rst +++ b/Doc/library/re.rst @@ -521,7 +521,11 @@ form. current locale. The use of this flag is discouraged as the locale mechanism is very unreliable, and it only handles one "culture" at a time anyway; you should use Unicode matching instead, which is the default in Python 3 - for Unicode (str) patterns. + for Unicode (str) patterns. This flag makes sense only with bytes patterns. + + .. deprecated-removed:: 3.5 3.6 + Deprecated the use of :const:`re.LOCALE` with string patterns or + :const:`re.ASCII`. .. data:: M |