[Python-checkins] python/dist/src/Doc/lib libstring.tex,1.60,1.61

rhettinger at users.sourceforge.net rhettinger at users.sourceforge.net
Mon Sep 6 03:01:11 CEST 2004


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

Modified Files:
	libstring.tex 
Log Message:
Markup nits.

Index: libstring.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libstring.tex,v
retrieving revision 1.60
retrieving revision 1.61
diff -u -d -r1.60 -r1.61
--- libstring.tex	25 Aug 2004 03:09:58 -0000	1.60
+++ libstring.tex	6 Sep 2004 01:01:08 -0000	1.61
@@ -105,15 +105,17 @@
 
 \item \samp{\$\{identifier\}} is equivalent to \samp{\$identifier}.  It is
       required when valid identifier characters follow the placeholder but are
-      not part of the placeholder, e.g. "\$\{noun\}ification".
+      not part of the placeholder, such as "\$\{noun\}ification".
 \end{itemize}
 
 Any other appearance of \samp{\$} in the string will result in a
 \exception{ValueError} being raised.
 
+\versionadded{2.4}
+
 Template strings are used just like normal strings, in that the modulus
 operator is used to interpolate a dictionary of values into a Template string,
-e.g.:
+for example:
 
 \begin{verbatim}
 >>> from string import Template
@@ -151,7 +153,7 @@
 placeholder rule:
 
 \begin{itemize}
-\item \var{escaped} -- This group matches the escape sequence, i.e. \samp{\$\$}
+\item \var{escaped} -- This group matches the escape sequence, \samp{\$\$},
       in the default pattern.
 \item \var{named} -- This group matches the unbraced placeholder name; it
       should not include the \samp{\$} in capturing group.
@@ -242,7 +244,7 @@
 \end{funcdesc}
 
 \begin{funcdesc}{expandtabs}{s\optional{, tabsize}}
-  Expand tabs in a string, i.e.\ replace them by one or more spaces,
+  Expand tabs in a string replacing them by one or more spaces,
   depending on the current column and the given tab size.  The column
   number is reset to zero after each newline occurring in the string.
   This doesn't understand other non-printing characters or escape



More information about the Python-checkins mailing list