classification
Title: Incomplete description of re.LOCALE
Type: Stage: resolved
Components: Documentation Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder: It is undocumented that re.UNICODE and re.LOCALE affect re.IGNORECASE
View: 24896
Assigned To: docs@python Nosy List: docs@python, jwilk, serhiy.storchaka
Priority: normal Keywords:

Created on 2017-05-15 17:33 by jwilk, last changed 2017-05-15 18:43 by serhiy.storchaka. This issue is now closed.

Messages (2)
msg293726 - (view) Author: Jakub Wilk (jwilk) Date: 2017-05-15 17:33
<https://docs.python.org/3/library/re.html#re.LOCALE> reads:
"Make \w, \W, \b, \B, \s and \S dependent on the current locale."

But this is not the only thing this flag does. When combined with re.IGNORECASE,  it also makes case-insesitive matching locale-dependent.
msg293729 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2017-05-15 18:43
This looks similar to issue24896. Closing this issue as a duplicate since it is makes large sense to merge these two documentation changes.
History
Date User Action Args
2017-05-15 18:43:03serhiy.storchakasetstatus: open -> closed

superseder: It is undocumented that re.UNICODE and re.LOCALE affect re.IGNORECASE

nosy: + serhiy.storchaka
messages: + msg293729
resolution: fixed
stage: resolved
2017-05-15 17:33:23jwilkcreate