]> granicus.if.org Git - python/commitdiff
Document __unicode__. Fixes #541245.
authorMartin v. Löwis <martin@v.loewis.de>
Thu, 11 Apr 2002 12:39:35 +0000 (12:39 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Thu, 11 Apr 2002 12:39:35 +0000 (12:39 +0000)
Doc/ref/ref3.tex

index 2056a6c78deea15433d3df0dadad93ee01b84b85..8dbe8f07b2766a944aed69a39c3d4e8f37ab63fc 100644 (file)
@@ -1096,6 +1096,13 @@ considered true.
 \withsubitem{(mapping object method)}{\ttindex{__len__()}}
 \end{methoddesc}
 
+\begin{methoddesc}[object]{__unicode__}{self}
+Called to implement \function{unicode()}\bifuncindex{unicode} builtin;
+should return a Unicode object. When this method is not defined, string
+conversion is attempted, and the result of string conversion is converted
+to Unicode using the system default encoding.
+\end{methoddesc}
+
 
 \subsection{Customizing attribute access\label{attribute-access}}