New submission from Serhiy Storchaka:

The meaning of inline flags not at the start of regular expression is 
ambiguous. Current re implementation and regex in the V0 mode enlarge the scope 
to all expression. In V1 mode in regex they affect only the end of the 
expression.

I propose to deprecate (and then forbid in 3.7) the use of inline flags not at 
the start of regular expression. This will help to change the meaning of inline 
flags in the middle of the expression in future (in 3.8 or later).

----------
components: Library (Lib), Regular Expressions
files: re_deprecate_nonstart_flags.patch
keywords: patch
messages: 227520
nosy: ezio.melotti, mrabarnett, pitrou, serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: Deprecate the use of flags not at the start of regular expression
type: enhancement
versions: Python 3.5
Added file: http://bugs.python.org/file36721/re_deprecate_nonstart_flags.patch

_______________________________________
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