summaryrefslogtreecommitdiffstats
path: root/Doc/ref/ref3.tex
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2002-04-11 12:39:35 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2002-04-11 12:39:35 (GMT)
commit2a519f8fe6ddb59e8c9ae14d3b7adccce22efa6e (patch)
tree210a03d120639756b150b7dc396aafb44cba563d /Doc/ref/ref3.tex
parent81bdc93d2fec9aa95f10e04dd019a8c207faeb52 (diff)
downloadcpython-2a519f8fe6ddb59e8c9ae14d3b7adccce22efa6e.zip
cpython-2a519f8fe6ddb59e8c9ae14d3b7adccce22efa6e.tar.gz
cpython-2a519f8fe6ddb59e8c9ae14d3b7adccce22efa6e.tar.bz2
Document __unicode__. Fixes #541245.
Diffstat (limited to 'Doc/ref/ref3.tex')
-rw-r--r--Doc/ref/ref3.tex7
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/ref/ref3.tex b/Doc/ref/ref3.tex
index 2056a6c..8dbe8f0 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}}