Get the latest tech news

PEP 750 – Template Strings


This PEP introduces template strings for custom string processing.

Ultimately we decided to keep the conversion attribute in the Interpolation type to maintain compatibility with f-strings and to allow for future extensibility. Following the implementation of this PEP, this new module may be used for related functions, such as convert(), or potential future template processing code, such as shell script helpers. In cases where the format string is obtained from user input, the filesystem, or databases, it is possible to write code to convert it into a Template instance if desired.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of PEP 750

PEP 750

Photo of Template Strings

Template Strings