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 you will find that this is an anti-pattern, and the best practice is to use the raw string.


Please sign in to leave a comment.