[Python-checkins] CVS: python/dist/src/Doc/lib libstdtypes.tex,1.80,1.80.6.1

Fred L. Drake fdrake@users.sourceforge.net
Thu, 27 Dec 2001 20:37:39 -0800


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory usw-pr-cvs1:/tmp/cvs-serv5569/lib

Modified Files:
      Tag: release22-maint
	libstdtypes.tex 
Log Message:
Added index entries similar to some recommended by Skip, and used the word
"interpolation" in the text, to make the string formatting material easier to
find.
This closes SF bug #487165.


Index: libstdtypes.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libstdtypes.tex,v
retrieving revision 1.80
retrieving revision 1.80.6.1
diff -C2 -d -r1.80 -r1.80.6.1
*** libstdtypes.tex	2001/12/10 16:43:08	1.80
--- libstdtypes.tex	2001/12/28 04:37:37	1.80.6.1
***************
*** 682,699 ****
  
  \index{formatting, string (\%{})}
  \index{string!formatting}
  \index{printf-style formatting}
  \index{sprintf-style formatting}
  \index{\protect\%{} formatting}
  
  String and Unicode objects have one unique built-in operation: the
! \code{\%} operator (modulo).  Given \code{\var{format} \%
! \var{values}} (where \var{format} is a string or Unicode object),
! \code{\%} conversion specifications in \var{format} are replaced with
! zero or more elements of \var{values}.  The effect is similar to the
! using \cfunction{sprintf()} in the C language.  If \var{format} is a
! Unicode object, or if any of the objects being converted using the
! \code{\%s} conversion are Unicode objects, the result will be a
! Unicode object as well.
  
  If \var{format} requires a single argument, \var{values} may be a
--- 682,703 ----
  
  \index{formatting, string (\%{})}
+ \index{interpolation, string (\%{})}
  \index{string!formatting}
+ \index{string!interpolation}
  \index{printf-style formatting}
  \index{sprintf-style formatting}
  \index{\protect\%{} formatting}
+ \index{\protect\%{} interpolation}
  
  String and Unicode objects have one unique built-in operation: the
! \code{\%} operator (modulo).  This is also known as the string
! \emph{formatting} or \emph{interpolation} operator.  Given
! \code{\var{format} \% \var{values}} (where \var{format} is a string or
! Unicode object), \code{\%} conversion specifications in \var{format}
! are replaced with zero or more elements of \var{values}.  The effect
! is similar to the using \cfunction{sprintf()} in the C language.  If
! \var{format} is a Unicode object, or if any of the objects being
! converted using the \code{\%s} conversion are Unicode objects, the
! result will be a Unicode object as well.
  
  If \var{format} requires a single argument, \var{values} may be a