On Sun, Feb 23, 2020 at 05:01:22PM +1100, Steven D'Aprano wrote:

> Why is that a f-string? It's a static message. That's kind of like 
> writing `x += eval('1')`.

Oh, I just checked in 3.8 with `dis`, and static f-strings are compiled
to a static string. Nice!



-- 
Steven
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/6QFDKZD7S63GLFPQWJN2UEWNQA7II5JH/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to