[issue17777] Unrecognized string literal escape sequences give SyntaxErrors
New submission from Reynir Reynisson: Strings like "\u" trigger a SyntaxError. According to the language reference "all unrecognized escape sequences are left in the string unchanged"[0]. The string "\u" clearly doesn't match any of the escape sequences (i
[issue17777] Unrecognized string literal escape sequences give SyntaxErrors
Reynir Reynisson added the comment: Thank you for the quick reply. Yes, something along those lines would help. Maybe adding "The escape sequence \x expects exactly two hex digits" would make it even clearer. -- ___ Python trac