<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 8 August 2015 at 11:39, Eric V. Smith <span dir="ltr"><<a href="mailto:eric@trueblade.com" target="_blank">eric@trueblade.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Following a long discussion on python-ideas, I've posted my draft of<br>
PEP-498. It describes the "f-string" approach that was the subject of<br>
the "Briefer string format" thread. I'm open to a better title than<br>
"Literal String Formatting".<br>
<br>
I need to add some text to the discussion section, but I think it's in<br>
reasonable shape. I have a fully working implementation that I'll get<br>
around to posting somewhere this weekend.<br>
<br>
>>> def how_awesome(): return 'very'<br>
...<br>
>>> f'f-strings are {how_awesome()} awesome!'<br>
'f-strings are very awesome!'<br>
<br>
I'm open to any suggestions to improve the PEP. Thanks for your feedback.<br></blockquote><div><br></div><div>I'd like to see an alternatives section, in particular listing alternative prefixes and why they weren't chosen over f. Off the top of my head, ones I've seen listed are:</div><div><br></div><div>!</div><div>$</div><div><br></div><div>Tim Delaney </div></div></div></div>