mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Issue #21032: Deprecated the use of re.LOCALE flag with str patterns or
re.ASCII. It was newer worked.
This commit is contained in:
parent
720b8c9dd7
commit
22a309a434
4 changed files with 84 additions and 17 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue