Oddbean new post about | logout
 PEP 750 Introduces Tag Strings for Custom String Processing

The Python Enhancement Proposal (PEP) 750 introduces tag strings, an extension to f-strings that allows for custom, repeatable string processing. This new feature enables developers to create domain-specific languages by providing a custom function, known as the "tag," in place of the f prefix.

Source: https://discuss.python.org/t/pep-750-tag-strings-for-writing-domain-specific-languages/60408