[Python-ideas] Make undefined escape sequences have SyntaxWarnings

Serhiy Storchaka storchaka at gmail.com
Wed Oct 10 22:04:25 CEST 2012


On 10.10.12 22:46, Antoine Pitrou wrote:
> -1. This will make life more difficult with regular expressions (and
> produce lots of spurious warnings in existing code).

Strings for regular expressions always should be raw. Now regular 
expressions supports \u and \U escapes and no reason to use non-raw strings.




More information about the Python-ideas mailing list