On 02/24/2015 09:18 AM, Thomas Wouters wrote: > On Tue, Feb 24, 2015 at 5:37 PM, Ethan Furman wrote: >> >> - M.A.Lemburg's idea of changing the exception message in key places to >> make a successful >> backslash replace obvious >> (FileNotFoundError: [Errno 2] No such file or directory: 'c:[\t]est.txt' >> - warning: embedded escapes) > > Any ideas on how this check could be implemented? How would it distinguish \t > from an actual tab in the string literal, or "C:\x64-python" from > "C:\d-python"...?
--> 'a tab' 'a\ttab' --> 'a\ttab' 'a\ttab' So the phrase "embedded escapes" may not always be accurate, but will be something to search on, and will help explain what is being seen. -- ~Ethan~
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com