Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2a519f8

Browse files
committed
Document __unicode__. Fixes #541245.
1 parent 81bdc93 commit 2a519f8

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Doc/ref/ref3.tex

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1096,6 +1096,13 @@ \subsection{Basic customization\label{customization}}
10961096
\withsubitem{(mapping object method)}{\ttindex{__len__()}}
10971097
\end{methoddesc}
10981098

1099+
\begin{methoddesc}[object]{__unicode__}{self}
1100+
Called to implement \function{unicode()}\bifuncindex{unicode} builtin;
1101+
should return a Unicode object. When this method is not defined, string
1102+
conversion is attempted, and the result of string conversion is converted
1103+
to Unicode using the system default encoding.
1104+
\end{methoddesc}
1105+
10991106

11001107
\subsection{Customizing attribute access\label{attribute-access}}
11011108

0 commit comments

Comments
 (0)