[Python-checkins] python/dist/src/Doc/lib libstdtypes.tex, 1.153, 1.154

perky at users.sourceforge.net perky at users.sourceforge.net
Wed Jun 2 12:49:41 EDT 2004


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

Modified Files:
	libstdtypes.tex 
Log Message:
- SF #962502: Add two more methods for unicode type; width() and
iswide() for east asian width manipulation. (Inspired by David
Goodger, Reviewed by Martin v. Loewis)
- Move _PyUnicode_TypeRecord.flags to the end of the struct so that
no padding is added for UCS-4 builds. (Suggested by Martin v. Loewis)


Index: libstdtypes.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libstdtypes.tex,v
retrieving revision 1.153
retrieving revision 1.154
diff -C2 -d -r1.153 -r1.154
*** libstdtypes.tex	12 May 2004 02:48:29 -0000	1.153
--- libstdtypes.tex	2 Jun 2004 16:49:08 -0000	1.154
***************
*** 643,646 ****
--- 643,652 ----
  \end{methoddesc}
  
+ \begin{methoddesc}[string]{iswide}{}
+ Return true if all characters in the string are wide or full width and
+ there is at least one wide or full width character, false otherwise.
+ This method is supported by unicode type only.
+ \end{methoddesc}
+ 
  \begin{methoddesc}[string]{join}{seq}
  Return a string which is the concatenation of the strings in the
***************
*** 775,778 ****
--- 781,789 ----
  \end{methoddesc}
  
+ \begin{methoddesc}[string]{width}{}
+ Return length of fixed-width representation of the string. This method
+ is supported by unicode type only.
+ \end{methoddesc}
+ 
  \begin{methoddesc}[string]{zfill}{width}
  Return the numeric string left filled with zeros in a string




More information about the Python-checkins mailing list