mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
[Patch #1076365] Correction of name of Template class; add contributor
This commit is contained in:
parent
fd1c69e7ef
commit
b69c49c2f1
1 changed files with 3 additions and 2 deletions
|
@ -227,7 +227,7 @@ will raise a \exception{KeyError}. There's also a \method{safe_substitute}
|
||||||
method that ignores missing keys:
|
method that ignores missing keys:
|
||||||
|
|
||||||
\begin{verbatim}
|
\begin{verbatim}
|
||||||
>>> t = string.SafeTemplate('$page: $title')
|
>>> t = string.Template('$page: $title')
|
||||||
>>> t.safe_substitute({'page':3})
|
>>> t.safe_substitute({'page':3})
|
||||||
u'3: $title'
|
u'3: $title'
|
||||||
\end{verbatim}
|
\end{verbatim}
|
||||||
|
@ -881,6 +881,7 @@ fill character other than a space.
|
||||||
\item Strings also gained an \method{rsplit()} method that
|
\item Strings also gained an \method{rsplit()} method that
|
||||||
works like the \method{split()} method but splits from the end of
|
works like the \method{split()} method but splits from the end of
|
||||||
the string.
|
the string.
|
||||||
|
(Contributed by Sean Reifschneider.)
|
||||||
|
|
||||||
\begin{verbatim}
|
\begin{verbatim}
|
||||||
>>> 'www.python.org'.split('.', 1)
|
>>> 'www.python.org'.split('.', 1)
|
||||||
|
@ -1729,6 +1730,6 @@ the name \samp{None} is now a syntax error.
|
||||||
The author would like to thank the following people for offering
|
The author would like to thank the following people for offering
|
||||||
suggestions, corrections and assistance with various drafts of this
|
suggestions, corrections and assistance with various drafts of this
|
||||||
article: Koray Can, Hye-Shik Chang, Michael Dyck, Raymond Hettinger,
|
article: Koray Can, Hye-Shik Chang, Michael Dyck, Raymond Hettinger,
|
||||||
Brian Hurt, Hamish Lawson, Fredrik Lundh.
|
Brian Hurt, Hamish Lawson, Fredrik Lundh, Sean Reifschneider.
|
||||||
|
|
||||||
\end{document}
|
\end{document}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue