<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Aug 24, 2015 at 1:44 PM, Nathaniel Smith <span dir="ltr"><<a href="mailto:njs@pobox.com" target="_blank">njs@pobox.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
</span>From the early part of this discussion [1], I had the impression that<br>
the goal was that eventually string interpolation would be on by<br>
default for all strings, with PEP 498 intended as an intermediate step<br>
towards that goal. Is that still true, or is the plan now that<br>
interpolated strings will always require an explicit marker (like<br>
'f')?<br></blockquote><div><br></div><div>That was not received well, so I think it's dead.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I ask because if they *do* require an explicit marker, then obviously<br>
the best thing is for the syntax to match that of .format. But, if<br>
this will be enabled for all strings in Python 3.something, then it<br>
seems like we should be careful now to make sure that the syntax is<br>
clearly distinct from that used for .format ("${...}" or "\{...}" or<br>
...), because anything else creates nasty compatibility problems for<br>
people trying to write format template strings that work on both old<br>
and new Pythons.<br></blockquote><div><br></div><div>Good point.<br> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
(This is also assuming that f-string interpolation and the eventual<br>
plain-old-string interpolation will use the same syntax, but that<br>
seems like a highly desirable property to me..)<br>
<br>
-n<br>
<br>
[1] <a href="http://thread.gmane.org/gmane.comp.python.ideas/34980" rel="noreferrer" target="_blank">http://thread.gmane.org/gmane.comp.python.ideas/34980</a><br>
<div class="HOEnZb"><div class="h5"><br>
--<br>
Nathaniel J. Smith -- <a href="http://vorpus.org" rel="noreferrer" target="_blank">http://vorpus.org</a><br>
</div></div></blockquote></div><br>-- <br><div class="gmail_signature">--Guido van Rossum (<a href="http://python.org/~guido" target="_blank">python.org/~guido</a>)</div>
</div></div>