Issue #21032: Deprecated the use of re.LOCALE flag with str patterns or

re.ASCII. It was newer worked.
This commit is contained in:
Serhiy Storchaka 2014-12-01 11:50:07 +02:00
parent 720b8c9dd7
commit 22a309a434
4 changed files with 84 additions and 17 deletions

View file

@ -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