Find Related products on Amazon

Shop on Amazon

PEP 750 – Template Strings

Published on: 2025-05-02 22:24:01

PEP 750 – Template Strings Author : Jim Baker , Guido van Rossum , Paul Everitt , Koudai Aono , Lysandros Nikolaou , Dave Peck Discussions-To : Discourse thread Status : Accepted Type : Standards Track Created : 08-Jul-2024 Python-Version : 3.14 Post-History : 09-Aug-2024, 17-Oct-2024, 21-Oct-2024, 18-Nov-2024 Resolution : 10-Apr-2025 Abstract This PEP introduces template strings for custom string processing. Template strings are a generalization of f-strings, using a t in place of the f prefix. Instead of evaluating to str , t-strings evaluate to a new type, Template : template : Template = t "Hello {name} " Templates provide developers with access to the string and its interpolated values before they are combined. This brings native flexible string processing to the Python language and enables safety checks, web templating, domain-specifi ... Read full article.