Skip to content

Commit 09a1e9e

Browse files
committed
Make clear the preceding discussion about t-strings creating an instance of templatelib.Template.
1 parent 5a8dbfa commit 09a1e9e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Doc/library/string.templatelib.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ The most common way to create a new :class:`Template` instance is to use the t-s
2525

2626
>>> name = "World"
2727
>>> greeting = t"Hello {name}!"
28+
>>> type(greeting)
29+
<class 'string.templatelib.Template'>
2830
>>> print(list(greeting))
2931
['Hello ', Interpolation('World'), '!']
3032

0 commit comments

Comments
 (0)