> On 24 Jun 2021, at 10:28, micro codery <ucod...@gmail.com> wrote: > > As pointed out already, f-strings and format are subtly different (not > counting that one can eval and the other cannot). Besides quoting, the > f-sting mini language has diverged from format's >>>> spam="Spam" >>>> f"{spam=}" > "spam='Spam'" >>>> "{spam=}".format(spam=spam) > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > KeyError: 'spam=' > > I created a package some time ago to do exactly this > https://pypi.org/project/f-yeah/
Lovely! Thanks. —eric _______________________________________________ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/RIWZ6ABBMQXB32QVUCJU43QZM3HNZ74R/ Code of Conduct: http://python.org/psf/codeofconduct/