From 2a519f8fe6ddb59e8c9ae14d3b7adccce22efa6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Thu, 11 Apr 2002 12:39:35 +0000 Subject: Document __unicode__. Fixes #541245. --- Doc/ref/ref3.tex | 7 +++++++ 1 file changed, 7 insertions(+) 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}} -- cgit v0.12