[issue39394] re: DeprecationWarning for `flag not at the start of expression` is cutoff too early

Serhiy Storchaka report at bugs.python.org
Sat Mar 19 07:45:47 EDT 2022


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

This warning was introduced in 3.6. It is a time to convert it into an error. RE error messages contain position.

But I understand that very few users will use 3.11 in nearest future, so I am going to add a position to warning message and backport this change. It is not a bugfix in strong meaning, but I think it is safe to backport it.

----------
versions: +Python 3.10, Python 3.11 -Python 3.7, Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39394>
_______________________________________


More information about the Python-bugs-list mailing list