Commit 05ed4213 authored by Guido van Rossum's avatar Guido van Rossum

__oct__ and __hex__

parent d9132af7
......@@ -702,4 +702,9 @@ currently it doesn't --- hence this strange exception.}
Called to implement the built-in functions \verb\int()\, \verb\long()\
and \verb\float()\. Should return a value of the appropriate type.
\item[\tt __oct__(self)]\itemjoin
\item[\tt __hex__(self)]\itembreak
Called to implement the built-in functions \verb\oct()\ and
\verb\hex()\. Should return a string value.
\end{description}
......@@ -702,4 +702,9 @@ currently it doesn't --- hence this strange exception.}
Called to implement the built-in functions \verb\int()\, \verb\long()\
and \verb\float()\. Should return a value of the appropriate type.
\item[\tt __oct__(self)]\itemjoin
\item[\tt __hex__(self)]\itembreak
Called to implement the built-in functions \verb\oct()\ and
\verb\hex()\. Should return a string value.
\end{description}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment