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

2011-04-03 Thread R. David Murray
R. David Murray added the comment: Yeah, as far as I could tell from a brief scan of google hits, locale support in regex in general is a legacy thing, and the "correct" thing to do is to use unicode properties. So I'll close this as won't fix. If someone comes along with motivation to fix

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

2011-04-03 Thread Vlastimil Brom
Vlastimil Brom 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

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

2011-04-03 Thread R. David Murray
R. David Murray added the comment: I don't know what re is doing with respect to locale, but I do know that the implementation of string.letters is at least somewhat broken in 2.x. It has no useful meaning in unicode, which is why it doesn't exist in 3.x. A standard that talks about regex an

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

2011-04-02 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti, mrabarnett ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

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

2011-04-02 Thread Vlastimil Brom
New submission from Vlastimil Brom : Hi, I just noticed a behaviour of the re.LOCALE flag I can't understand; I first reported this to the new regex implementation, which, however, only mimics the standard lib re in this case: http://code.google.com/p/mrab-regex-hg/issues/detail?id=6 I also cou