[Python-ideas] Let’s make escaping in f-literals impossible

Steven D'Aprano steve at pearwood.info
Fri Aug 19 01:49:28 EDT 2016


On Thu, Aug 18, 2016 at 08:27:50PM -0400, Eric V. Smith wrote:

> Right. Because all strings (regardless of prefixes) are first parsed as 
> strings, and then have their prefix "operator" applied, it's easy for a 
> parser to ignore any sting prefix character.

Is that why raw strings can't end with a backspace?

If so, that's the first time I've seen an explanation of that fact which 
makes sense!


-- 
Steve


More information about the Python-ideas mailing list