[New-bugs-announce] [issue30215] Make re.compile() locale agnostic

Serhiy Storchaka report at bugs.python.org
Sun Apr 30 01:21:39 EDT 2017


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 <report at bugs.python.org>
<http://bugs.python.org/issue30215>
_______________________________________


More information about the New-bugs-announce mailing list