[Python-checkins] python/dist/src/Doc/lib libfuncs.tex,1.115,1.116

fdrake@users.sourceforge.net fdrake@users.sourceforge.net
Tue, 24 Sep 2002 06:57:24 -0700


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

Modified Files:
	libfuncs.tex 
Log Message:
Clarify that len() of a Unicode string returns the number of storage units,
not abstract characters.


Index: libfuncs.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libfuncs.tex,v
retrieving revision 1.115
retrieving revision 1.116
diff -C2 -d -r1.115 -r1.116
*** libfuncs.tex	4 Sep 2002 23:52:42 -0000	1.115
--- libfuncs.tex	24 Sep 2002 13:57:21 -0000	1.116
***************
*** 569,572 ****
--- 569,576 ----
    Return the length (the number of items) of an object.  The argument
    may be a sequence (string, tuple or list) or a mapping (dictionary).
+   In the case of Unicode strings, \function{len()} returns the number
+   of storage units, not abstract characters.  In particular, when a
+   surrogate pair is encountered, each component of the pair is counted
+   as a separate character.
  \end{funcdesc}