Illegal/unsupportet escape sequence

I'm running pycharm 2021.2
Python 3.9
running on Windows 10

var_re = lambda x: re.compile(fr"""
(?P<escaped>\{x}) |
(?P<named>[_a-zA-Z][_a-zA-Z0-9]*) |
(?::?-(?P<default>[^}}]+)) |
""", re.VERBOSE)

The error shows up at "\{x}".

It is not a problem because everything is running. I just noticed it and wanted to report it back.

1 comment
Comment actions Permalink

Hi, thank you for reporting, I've submitted a bug report for this


Please sign in to leave a comment.