From: Martin v. Löwis Date: Thu, 11 Apr 2002 12:39:35 +0000 (+0000) Subject: Document __unicode__. Fixes #541245. X-Git-Tag: v2.3c1~6052 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2a519f8fe6ddb59e8c9ae14d3b7adccce22efa6e;p=thirdparty%2FPython%2Fcpython.git Document __unicode__. Fixes #541245. --- diff --git a/Doc/ref/ref3.tex b/Doc/ref/ref3.tex index 2056a6c78dee..8dbe8f07b276 100644 --- a/Doc/ref/ref3.tex +++ b/Doc/ref/ref3.tex @@ -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}}