PEP 701: Syntactic formalization of f-strings

Shared: | Tags: python til

Python 3.12 brought some new functionality to f-strings, described in PEP 701, that I only just discovered. One of those new features is reusing quotes which I first saw in the wild last week. Another functionality is removing the restrictions on multi-line f-strings and allowing comments.

Read from link