
July 21, 2015
3:39 a.m.
On Mon, Jul 20, 2015 at 4:20 PM, Eric V. Smith <eric@trueblade.com> wrote:
And thinking about it yet some more, I think the easiest and most consistent thing to do would be to translate it like:
f'{a[0]}{b[c]}' == '{[0]}{[c]}'.format(a, b)
I think Python can do more at compile time and translate f"Result1={expr1:fmt1};Result2={expr2:fmt2}" to bytecode equivalent of "Result1=%s;Result2=%s" % ((expr1).__format__(fmt1), (expr2).__format__(fmt2))