On Fri, Sep 18, 2020 at 9:00 AM Steven D'Aprano email@example.com 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.