<span class="Apple-style-span" style="font-size: small;"><br><br></span><div class="gmail_quote"><span class="Apple-style-span" style="font-size: small;">On Thu, Feb 12, 2009 at 11:24 AM, Terry Reedy </span><span dir="ltr"><span class="Apple-style-span" style="font-size: small;"><<a href="mailto:tjreedy@udel.edu">tjreedy@udel.edu</a>></span></span><span class="Apple-style-span" style="font-size: small;"> wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="Ih2E3d"><span class="Apple-style-span" style="font-size: small;"><br></span></div><div class="Ih2E3d">
<span class="Apple-style-span" style="font-size: small;">
PROPOSAL: Allow the simple case to stay simple. Allow field names to be omitted for all fields in a string and then default to 0, 1, ... so that example above could be written as<br><br>
>>> msg = "{} == {}".format<br><br></span>
</div><span class="Apple-style-span" style="font-size: small;">
Given that computers are glorified counting machines, it *is* a bit annoying to be required to do the counting manually.</span></blockquote><div><span class="Apple-style-span" style="font-size: small;"><br></span></div><div>
<span class="Apple-style-span" style="font-size: small;">Explicit syntax is better imho:</span></div><div><span class="Apple-style-span" style="font-size: small;"><br></span></div><div><span class="Apple-style-span" style="font-size: small;">"The answers are {.} and {.}.".format(x,y)</span></div>
<div><span class="Apple-style-span" style="font-size: small;"><br></span></div><div><span class="Apple-style-span" style="font-size: small;">I'm suggesting a bare dot because it looks like something rather than nothing and this syntax is currently invalid.<br>
</span></div><div><span class="Apple-style-span" style="font-size: small;"><br></span></div><div><span class="Apple-style-span" style="font-size: small;">--- Bruce</span></div></div>