[Python-checkins] python/dist/src/Doc/lib libstdtypes.tex,1.128,1.129 libstring.tex,1.51,1.52

rhettinger@users.sourceforge.net rhettinger@users.sourceforge.net
Tue, 15 Jul 2003 22:11:29 -0700


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

Modified Files:
	libstdtypes.tex libstring.tex 
Log Message:
Discussion of signatures for unicode.translate() and str.translate()
were in the wrong file.  Moved out of libstring.tex and into
libstdtypes.tex.



Index: libstdtypes.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libstdtypes.tex,v
retrieving revision 1.128
retrieving revision 1.129
diff -C2 -d -r1.128 -r1.129
*** libstdtypes.tex	25 Jun 2003 19:03:22 -0000	1.128
--- libstdtypes.tex	16 Jul 2003 05:11:27 -0000	1.129
***************
*** 741,744 ****
--- 741,754 ----
  characters have been mapped through the given translation table, which
  must be a string of length 256.
+ 
+ For Unicode objects, the \method{translate()} method does not
+ accept the optional \var{deletechars} argument.  Instead, it
+ returns a copy of the \var{s} where all characters have been mapped
+ through the given translation table which must be a mapping of
+ Unicode ordinals to Unicode ordinals, Unicode strings or \code{None}.
+ Unmapped characters are left untouched. Characters mapped to \code{None}
+ are deleted.  Note, a more flexible approach is to create a custom
+ character mapping codec using the \refmodule{codecs} module (see
+ \module{encodings.cp1251} for an example).      
  \end{methoddesc}
  

Index: libstring.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libstring.tex,v
retrieving revision 1.51
retrieving revision 1.52
diff -C2 -d -r1.51 -r1.52
*** libstring.tex	13 Jul 2003 02:06:47 -0000	1.51
--- libstring.tex	16 Jul 2003 05:11:27 -0000	1.52
***************
*** 278,291 ****
    must be a 256-character string giving the translation for each
    character value, indexed by its ordinal.
- 
-   For Unicode objects, the \method{translate()} method does not
-   accept the optional \var{deletechars} argument.  Instead, it
-   returns a copy of the \var{s} where all characters have been mapped
-   through the given translation table which must be a mapping of
-   Unicode ordinals to Unicode ordinals, Unicode strings or \code{None}.
-   Unmapped characters are left untouched. Characters mapped to \code{None}
-   are deleted.  Note, a more flexible approach is to create a custom
-   character mapping codec using the \refmodule{codecs} module (see
-   \module{encodings.cp1251} for an example).
  \end{funcdesc}
  
--- 278,281 ----