mirror of
https://github.com/python/cpython
synced 2026-09-29 11:55:30 +03: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