[issue11744] re.LOCALE doesn't reflect locale.setlocale(...)

Vlastimil Brom report at bugs.python.org
Sun Apr 3 18:08:19 CEST 2011


Vlastimil Brom <vlastimil.brom at gmail.com> added the comment:

Thanks for the comment for string.letters and further reference.
Given, that Mr. Barnett mentioned in his tracker to regex ( http://code.google.com/p/mrab-regex-hg/issues/detail?id=6 ), that he only supports the LOCALE flag because of the compatibility with re and given my zero knowledge of C, I suppose, we will live with the status quo.
I guess, if there were a well defined source of "letters" for the given locales, the implementation wouldn't necessarily have to be be that complex (in the context of the regex code), but as there is probably no agreement in this respect (if string.letters is questionable), it becomes pointless.
After all, one can define a needed regex pattern manually, and mrab's regex library makes it much easier due to the support for unicode properties and others.

vbr

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11744>
_______________________________________


More information about the Python-bugs-list mailing list