]> granicus.if.org Git - python/commitdiff
Clarify the version information for the unicode() built-in.
authorFred Drake <fdrake@acm.org>
Sat, 29 Jun 2002 16:06:47 +0000 (16:06 +0000)
committerFred Drake <fdrake@acm.org>
Sat, 29 Jun 2002 16:06:47 +0000 (16:06 +0000)
Closes SF bug #575272.

Doc/lib/libfuncs.tex

index dbd3d55d1925ffe61956d9ca0ae14b5a88071954..793e4725f6ac5238677cc8ac19377be7f0d9d98e 100644 (file)
@@ -873,13 +873,16 @@ def my_import(name):
   behaviour of \code{str()} except that it returns Unicode strings
   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.
+  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}
 
 \begin{funcdesc}{vars}{\optional{object}}