summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2004-12-01 00:45:15 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2004-12-01 00:45:15 (GMT)
commite2a66bf6f8c4df588cf68e8ad475943de8ff6afa (patch)
treec3e2b9c571bea12723e3f27c79c6cc405f9a813c /Doc
parentb69c49c2f1d93d213c0e3a239be10dcc578b90ba (diff)
downloadcpython-e2a66bf6f8c4df588cf68e8ad475943de8ff6afa.zip
cpython-e2a66bf6f8c4df588cf68e8ad475943de8ff6afa.tar.gz
cpython-e2a66bf6f8c4df588cf68e8ad475943de8ff6afa.tar.bz2
Remove mention of Template being a subclass of unicode
Diffstat (limited to 'Doc')
-rw-r--r--Doc/whatsnew/whatsnew24.tex8
1 files changed, 3 insertions, 5 deletions
diff --git a/Doc/whatsnew/whatsnew24.tex b/Doc/whatsnew/whatsnew24.tex
index 6be2cbd..74419aa 100644
--- a/Doc/whatsnew/whatsnew24.tex
+++ b/Doc/whatsnew/whatsnew24.tex
@@ -209,15 +209,13 @@ complicated to explain to such users, and if they make a mistake, it's
difficult to provide helpful feedback to them.
PEP 292 adds a \class{Template} class to the \module{string} module
-that uses \samp{\$} to indicate a substitution. \class{Template} is a
-subclass of the built-in Unicode type, so the result is always a
-Unicode string:
+that uses \samp{\$} to indicate a substitution:
\begin{verbatim}
>>> import string
>>> t = string.Template('$page: $title')
>>> t.substitute({'page':2, 'title': 'The Best of Times'})
-u'2: The Best of Times'
+'2: The Best of Times'
\end{verbatim}
% $ Terminate $-mode for Emacs
@@ -229,7 +227,7 @@ method that ignores missing keys:
\begin{verbatim}
>>> t = string.Template('$page: $title')
>>> t.safe_substitute({'page':3})
-u'3: $title'
+'3: $title'
\end{verbatim}
% $ Terminate math-mode for Emacs