[Python-checkins] python/dist/src/Doc/lib libfuncs.tex,1.108,1.109
fdrake@users.sourceforge.net
fdrake@users.sourceforge.net
2002年6月29日 09:06:49 -0700
Update of /cvsroot/python/python/dist/src/Doc/lib
In directory usw-pr-cvs1:/tmp/cvs-serv19687/lib
Modified Files:
libfuncs.tex
Log Message:
Clarify the version information for the unicode() built-in.
Closes SF bug #575272.
Index: libfuncs.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libfuncs.tex,v
retrieving revision 1.108
retrieving revision 1.109
diff -C2 -d -r1.108 -r1.109
*** libfuncs.tex 20 Jun 2002 21:10:25 -0000 1.108
--- libfuncs.tex 29 Jun 2002 16:06:47 -0000 1.109
***************
*** 874,884 ****
instead of 8-bit strings. More precisely, if \var{object} is an
Unicode string or subclass it will return a Unicode string without
! any additional decoding applied. For objects which provide a
! \code{__unicode__} method, it will call this method without
! arguments to create a Unicode string. For all other objects, the
! 8-bit string version or representation is requested and then
! converted to a Unicode string using the codec for the default
! encoding in \code{'strict'} mode.
\versionadded{2.0}
\end{funcdesc}
--- 874,887 ----
instead of 8-bit strings. More precisely, if \var{object} is an
Unicode string or subclass it will return a Unicode string without
! any additional decoding applied.
!
! For objects which provide a \method{__unicode__()} method, it will
! call this method without arguments to create a Unicode string. For
! all other objects, the 8-bit string version or representation is
! requested and then converted to a Unicode string using the codec for
! the default encoding in \code{'strict'} mode.
!
\versionadded{2.0}
+ \versionchanged[Support for \method{__unicode__()} added]{2.2}
\end{funcdesc}