[Python-checkins] python/dist/src/Doc/lib libfuncs.tex,1.100.4.9,1.100.4.10
fdrake@users.sourceforge.net
fdrake@users.sourceforge.net
Tue, 24 Sep 2002 06:57:35 -0700
Update of /cvsroot/python/python/dist/src/Doc/lib
In directory usw-pr-cvs1:/tmp/cvs-serv23884/Doc/lib
Modified Files:
Tag: release22-maint
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.100.4.9
retrieving revision 1.100.4.10
diff -C2 -d -r1.100.4.9 -r1.100.4.10
*** libfuncs.tex 4 Sep 2002 15:02:53 -0000 1.100.4.9
--- libfuncs.tex 24 Sep 2002 13:57:32 -0000 1.100.4.10
***************
*** 527,530 ****
--- 527,534 ----
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}