mirror of
https://github.com/python/cpython.git
synced 2025-09-27 10:50:04 +00:00
Document __unicode__. Fixes #541245.
This commit is contained in:
parent
81bdc93d2f
commit
2a519f8fe6
1 changed files with 7 additions and 0 deletions
|
@ -1096,6 +1096,13 @@ considered true.
|
||||||
\withsubitem{(mapping object method)}{\ttindex{__len__()}}
|
\withsubitem{(mapping object method)}{\ttindex{__len__()}}
|
||||||
\end{methoddesc}
|
\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}}
|
\subsection{Customizing attribute access\label{attribute-access}}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue