File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -254,8 +254,6 @@ PEP 750: Template strings
254254Template strings are a new mechanism for custom string processing. They share
255255the familiar syntax of f-strings but, unlike f-strings, return a
256256:class: `~string.templatelib.Template ` instance instead of a simple ``str ``.
257- Templates provide access to the static and interpolated (in curly braces) parts
258- of a string *before * they are combined.
259257
260258To write a t-string, use a ``'t' `` prefix instead of an ``'f' ``:
261259
@@ -266,7 +264,9 @@ To write a t-string, use a ``'t'`` prefix instead of an ``'f'``:
266264 >>> type (template)
267265 <class 'string.templatelib.Template'>
268266
269- Iterate over :class: `!Template ` instances to access their parts in order:
267+ Templates provide access to the static and interpolated (in curly braces) parts
268+ of a string *before * they are combined. Iterate over :class: `!Template `
269+ instances to access their parts in order:
270270
271271.. testsetup ::
272272
You can’t perform that action at this time.
0 commit comments