[Python-ideas] Briefer string format

Eric V. Smith eric at trueblade.com
Tue Aug 4 23:59:03 CEST 2015


> On Aug 4, 2015, at 5:16 PM, Eric V. Smith <eric at trueblade.com> wrote:
> 
>> On 8/4/2015 4:52 PM, Guido van Rossum wrote:
>> (Though honestly the whole look of f-strings hasn't quite grown on me. I
>> wish I could turn back the clock and make expression substitution a
>> feature of all string literals, perhaps using \{...}, which IIRC I've
>> seen in some other language.)
> 
> Well, we could do that with a future statement. It might be tough to
> ever make it the default, though.

By which I meant __future__ import. 

> But since it would only be literals, it's easy enough to find.

By which I meant the affected literals would be easy to find and mechanically convert. 

Sorry for the inexact wording. 

Eric. 


More information about the Python-ideas mailing list