[issue30215] Make re.compile() locale agnostic

2017-05-04 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[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 -- __

[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

[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:

[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://m

[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 modu