[Python-checkins] python/dist/src/Doc/whatsnew whatsnew24.tex, 1.120, 1.121

akuchling at users.sourceforge.net akuchling at users.sourceforge.net
Wed Dec 1 01:45:17 CET 2004


Update of /cvsroot/python/python/dist/src/Doc/whatsnew
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20197

Modified Files:
	whatsnew24.tex 
Log Message:
Remove mention of Template being a subclass of unicode

Index: whatsnew24.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/whatsnew/whatsnew24.tex,v
retrieving revision 1.120
retrieving revision 1.121
diff -u -d -r1.120 -r1.121
--- whatsnew24.tex	1 Dec 2004 00:42:41 -0000	1.120
+++ whatsnew24.tex	1 Dec 2004 00:45:15 -0000	1.121
@@ -209,15 +209,13 @@
 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 @@
 \begin{verbatim}
 >>> t = string.Template('$page: $title')
 >>> t.safe_substitute({'page':3})
-u'3: $title'
+'3: $title'
 \end{verbatim}
 
 % $ Terminate math-mode for Emacs



More information about the Python-checkins mailing list