mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
__oct__ and __hex__
This commit is contained in:
parent
7a461e5aaf
commit
66122d2dae
2 changed files with 10 additions and 0 deletions
|
@ -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}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue