@@ -105,15 +105,17 @@ \subsection{Template strings}
105105
106106\item \samp {\$\{ identifier\} } is equivalent to \samp {\$ identifier}. It is
107107 required when valid identifier characters follow the placeholder but are
108- not part of the placeholder, e.g. "\$\{noun\}ification" .
108+ not part of the placeholder, such as "\$\{noun\}ification" .
109109\end {itemize }
110110
111111Any other appearance of \samp {\$ } in the string will result in a
112112\exception {ValueError} being raised.
113113
114+ \versionadded {2.4}
115+
114116Template strings are used just like normal strings, in that the modulus
115117operator is used to interpolate a dictionary of values into a Template string,
116- e.g. :
118+ for example :
117119
118120\begin {verbatim }
119121>>> from string import Template
@@ -151,7 +153,7 @@ \subsection{Template strings}
151153placeholder rule:
152154
153155\begin {itemize }
154- \item \var {escaped} -- This group matches the escape sequence, i.e. \samp {\$\$ }
156+ \item \var {escaped} -- This group matches the escape sequence, \samp {\$\$ },
155157 in the default pattern.
156158\item \var {named} -- This group matches the unbraced placeholder name; it
157159 should not include the \samp {\$ } in capturing group.
@@ -242,7 +244,7 @@ \subsection{Deprecated string functions}
242244\end {funcdesc }
243245
244246\begin {funcdesc }{expandtabs}{s\optional {, tabsize}}
245- Expand tabs in a string, i.e. \ replace them by one or more spaces,
247+ Expand tabs in a string replacing them by one or more spaces,
246248 depending on the current column and the given tab size. The column
247249 number is reset to zero after each newline occurring in the string.
248250 This doesn't understand other non-printing characters or escape
0 commit comments