<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 20, 2015 at 4:20 PM, 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:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div id=":1zl" class="" style="overflow:hidden">And thinking about it yet some more, I think the easiest and most<br>
consistent thing to do would be to translate it like:<br>
<br>
f'{a[0]}{b[c]}' == '{[0]}{[c]}'.format(a, b)</div></blockquote></div><br>I think Python can do more at compile time and translate </div><div class="gmail_extra"><br></div><div class="gmail_extra">f"Result1={expr1:fmt1};Result2={expr2:fmt2}"</div><div class="gmail_extra"><br></div><div class="gmail_extra">to bytecode equivalent of</div><div class="gmail_extra"><br></div><div class="gmail_extra">"Result1=%s;Result2=%s" % ((expr1).__format__(fmt1), (expr2).__format__(fmt2))</div><div class="gmail_extra"><br></div></div>