[issue47066] Convert a warning about flags not at the start of the regular expression into error

2022-03-19 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue47066] Convert a warning about flags not at the start of the regular expression into error

2022-03-19 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 92a6abf72e7a8274f96edbb5297119d4ff055be7 by Serhiy Storchaka in 
branch 'main':
bpo-47066: Convert a warning about flags not at the start of the regular 
expression into error (GH-31994)
https://github.com/python/cpython/commit/92a6abf72e7a8274f96edbb5297119d4ff055be7


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue47066] Convert a warning about flags not at the start of the regular expression into error

2022-03-19 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
keywords: +patch
pull_requests: +30084
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/31994

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue47066] Convert a warning about flags not at the start of the regular expression into error

2022-03-19 Thread Serhiy Storchaka


New submission from Serhiy Storchaka :

This warning was introduced in 3.6. The reason is that in most other regular 
expression implementations global inline flags in the middle of the expression 
have different semantic: they affect only the part of the expression after the 
flag. But in Python they affect the whole expression. It caused confusion and 
was a source of bugs.

After 5 releases it is a time to convert this warning into error. In future we 
can allow global inline flags in the middle of the expression with different 
semantic. It is safer if one or more intermediate versions will raise an error.

--
components: Library (Lib), Regular Expressions
messages: 415544
nosy: ezio.melotti, mrabarnett, serhiy.storchaka
priority: normal
severity: normal
status: open
title: Convert a warning about flags not at the start of the regular expression 
into error
type: behavior
versions: Python 3.11

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com