New submission from Serhiy Storchaka: Currently the result of re.compile() with the re.LOCALE flag depends on the locale at compile time. The locale at matching time should be the same as the locale at compile time, otherwise the matching can work incorrectly. This complicates caching in module global functions and increase the chance of race condition.
Proposed patch makes re.compile() not depending on locale. Only the locale at matching time affects the result of matching. This is more comprehensive solution of issue22410. ---------- components: Extension Modules, Library (Lib), Regular Expressions messages: 292618 nosy: ezio.melotti, mrabarnett, serhiy.storchaka priority: normal severity: normal stage: patch review status: open title: Make re.compile() locale agnostic type: behavior versions: Python 3.7 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30215> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com