A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2015-February/138487.html below:

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

[Python-Dev] Emit SyntaxWarning on unrecognized backslash escapes? [Python-Dev] Emit SyntaxWarning on unrecognized backslash escapes?Serhiy Storchaka storchaka at gmail.com
Tue Feb 24 10:21:41 CET 2015
On 24.02.15 11:09, Nick Coghlan wrote:
> Oh, I like that idea, especially the variant that includes a search
> friendly phrase like "embedded escapes" in the error message. And
> unlike changing the handling of string literals generally, the impact
> would be isolated to a few exception __repr__ implementations.

It can require changing code in tens of places like 
``PyErr_Format(FooError, "File %R is not valid FOO", filename)`` or 
``raise FooError("File %r is not valid FOO" % (filename,))``.

And of course 'c:\test.txt' is valid name on Unix.


More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4