[Python-Dev] Emit SyntaxWarning on unrecognized backslash escapes?

Greg Ewing greg.ewing at canterbury.ac.nz
Mon Feb 23 22:39:25 CET 2015


Serhiy Storchaka wrote:
> The problem is that the user don't know that he should read the 
> documentation. It just find that his script works with "C:\sample.txt", 
> but doesn't work with "D:\test.txt". He has no ideas what happen.

Even with the syntax error, there are filenames that
will mysteriously fail, e.g. "C:\ninjamoves.txt".

-- 
Greg


More information about the Python-Dev mailing list