[issue30215] Make re.compile() locale agnostic

2017-05-05 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30215] Make re.compile() locale agnostic

2017-05-04 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:


New changeset 898ff03e1e7925ecde3da66327d3cdc7e07625ba by Serhiy Storchaka in 
branch 'master':
bpo-30215: Make re.compile() locale agnostic. (#1361)
https://github.com/python/cpython/commit/898ff03e1e7925ecde3da66327d3cdc7e07625ba


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30215] Make re.compile() locale agnostic

2017-05-04 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

This change can be considered as a bug fix, but I hesitate to apply it to 
maintained releases because the effect on the performance of case-sensitive 
locale-depending bytes matching is hardly predicable. Some matches become 5 
times faster, others become 1.5 times slower, depending on the cases of the 
pattern and the matched bytestring.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30215] Make re.compile() locale agnostic

2017-05-03 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
assignee:  -> serhiy.storchaka

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30215] Make re.compile() locale agnostic

2017-04-29 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
pull_requests: +1471

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30215] Make re.compile() locale agnostic

2017-04-29 Thread Serhiy Storchaka

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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com