Serhiy Storchaka added the comment:

This patch has a disadvantage - it slows down case-insensitive compiling of 
some very wide ranges, e.g. compile(r"[\x00-\U0010ffff]+", re.I) (this is worst 
case). In most cases this is not important, because such wide ranges are rare 
enough and compiled patterns are cached.

To get rid of this regression, we need new opcode. Due to preserving binary 
compatibility, this approach can't be applied to old releases. Here is a patch 
for 3.5.

Please make a review. This patches are needed to continue fixing of other re 
bugs.

----------
keywords: +needs review
Added file: http://bugs.python.org/file36636/re_ignore_case_range-3.5.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue17381>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to