Invalid escape sequence

Why does my pycharm PEP 8: W605 gives this warning on a statement like this one below?

coordlist = re.findall('\d{1,4}', bounds)

Warning: Invalid escape sequence \d

1 comment
Comment actions Permalink

Hi, if you go to https://www.flake8rules.com/rules/W605.html you will find that this is an anti-pattern, and the best practice is to use the raw string.

0

Please sign in to leave a comment.