Comment

Comment by thatcherthorn

As now f-strings can contain any valid Python expression inside expression components, it is now possible to nest f-strings arbitrarily:

>>> f"{f"{f"{f"{f"{f"{1+1}"}"}"}"}"}"

'2'

Is anyone aware of the change to the interpreter that allows for this?

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton