This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients ezio.melotti, mrabarnett, serhiy.storchaka
Date 2022-03-19.12:09:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1647691788.19.0.394073158016.issue47066@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2022-03-19 12:09:48serhiy.storchakasetrecipients: + serhiy.storchaka, ezio.melotti, mrabarnett
2022-03-19 12:09:48serhiy.storchakasetmessageid: <1647691788.19.0.394073158016.issue47066@roundup.psfhosted.org>
2022-03-19 12:09:48serhiy.storchakalinkissue47066 messages
2022-03-19 12:09:48serhiy.storchakacreate