March 2003
Intermediate to advanced
656 pages
39h 30m
English
__hex__, __oct__
__hex__(self) __oct__(self)
Built-in function
hex(
x
)
calls x
.__hex__( ).
Built-in function
oct(
x
)
calls x
.__oct__( ).
Each of these special methods should return a string representing the
value of x, in base 16 and 8 respectively.