__oct__ and __hex__

This commit is contained in:
Guido van Rossum 1992-09-20 21:43:47 +00:00
parent 7a461e5aaf
commit 66122d2dae
2 changed files with 10 additions and 0 deletions

View file

@ -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}

View file

@ -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}