Name
__complex__, __float__, __int__, __long__
Synopsis
__complex__(self) __float__(self) __int__(self) __long__(self)
Built-in types
complex(
x
)
,
float(
x
)
,
int(
x
)
,
and
long(
x
)
,
respectively, call these methods.
Get Python in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.