Serhiy Storchaka added the comment:

> That sounds a bit random. It wouldn't totally address the discrepancy with 
> regex, would it?

No, it will not totally address the discrepancy with regex, but at least it 
will allow as to change the behavior of flags in subpatterns. And we always can 
convert a pattern to a subpattern (surround by "(?:" and ")").

For now Python re module is only one regular expression implementation in which 
flags in the middle of the expression affect all expression. [1]

[1] http://www.regular-expressions.info/modifiers.html

----------

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

Reply via email to