On Fri, Sep 18, 2020 at 9:00 AM Steven D'Aprano <[email protected]> wrote: > > On Thu, Sep 17, 2020 at 06:06:39PM +0200, Alexis Masson wrote: > > > I do really like the idea, but assigning to a literal really makes it > > feel wrong... > > f-strings are not literals. They are a form of eval(). >
Oh, that makes 'em sound way too scary :) They're more akin to a list display - a syntactic structure that yields a well-defined object, and has expressions inside it. ChrisA _______________________________________________ Python-ideas mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/IAOWSB4Z523R5CEKRHCQGQGOIMZ3TWN3/ Code of Conduct: http://python.org/psf/codeofconduct/
