Hi Andy

On Mon, 21 Oct 2024 at 13:57, andy pugh <bodge...@gmail.com> wrote:
> As far as I am aware \d is a valid escape character in Python regex.
> These look like false-positives (given that as far as I know all the
> code mentioned is working.)

This is a change in Python 3.12 [1].

"
A backslash-character pair that is not a valid escape sequence now
generates a SyntaxWarning, instead of DeprecationWarning. For example,
re.compile("\d+\.\d+") now emits a SyntaxWarning ("\d" is an invalid
escape sequence, use raw strings for regular expression:
re.compile(r"\d+\.\d+")).
"

Regards
Graham


[1] https://docs.python.org/3/whatsnew/3.12.html


_______________________________________________
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to