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

Nathaniel Smith njs at pobox.com
Mon Feb 23 20:25:29 CET 2015


On Feb 23, 2015 9:30 AM, "Guido van Rossum" <guido at python.org> wrote:
>
> On Mon, Feb 23, 2015 at 9:01 AM, Ethan Furman <ethan at stoneleaf.us> wrote:
>>
>> On 02/23/2015 08:12 AM, Brett Cannon wrote:
>> > On Mon Feb 23 2015 at 10:55:23 AM Chris Angelico wrote:
>>
>> >> Is it at all possible for this to be introduced in the 2.x line [...]
>> >
>> > Starts with a minor version.
>>
>> Isn't there a -3 switch or something like that in 2.7.x to trigger
warnings/errors to help port to 3.x?  Seems like this
>> kind of warning could go there.
>
>
> If we agree it will be a syntax error in 3.x eventually.

+1 to that FWIW.

-n
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20150223/2c0f1c7d/attachment.html>


More information about the Python-Dev mailing list