This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eric.smith
Recipients eric.smith, ned.deily
Date 2016-08-31.23:49:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1472687380.69.0.18258745604.issue27921@psf.upfronthosting.co.za>
In-reply-to
Content
See https://mail.python.org/pipermail/python-dev/2016-August/145979.html for details.

PEP 498 is going to be changed to disallow backslashes inside braces (the expression portions of an f-string).

However, I can't get that change done in time for 3.6 beta 1. So, this bug will disallow any backslashes in f-strings. Before the next beta, I'll implement the correct behavior.

This is a breaking change: f-strings like f'\\t{3}' which worked in 3.6 alphas will not work in 3.6 beta 1, but will work in beta 2. f-strings like f'{\'x\'}' which worked in 3.6 alphas, will not work in any beta or release version of 3.6.
History
Date User Action Args
2016-08-31 23:49:40eric.smithsetrecipients: + eric.smith, ned.deily
2016-08-31 23:49:40eric.smithsetmessageid: <1472687380.69.0.18258745604.issue27921@psf.upfronthosting.co.za>
2016-08-31 23:49:40eric.smithlinkissue27921 messages
2016-08-31 23:49:40eric.smithcreate