[New-bugs-announce] [issue22493] Deprecate the use of flags not at the start of regular expression

Serhiy Storchaka report at bugs.python.org
Thu Sep 25 12:29:00 CEST 2014


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 <report at bugs.python.org>
<http://bugs.python.org/issue22493>
_______________________________________


More information about the New-bugs-announce mailing list