Manual de referencia de Python
Anterior:
3.3.2 Customizing attribute access
Niv. superior:
3.3 Special method names
Siguiente:
3.3.4 Emulating sequence and
3.3.3 Emulating callable objects
__call__
(
self
[
, args...
]
)
Called when the instance is ``called'' as a function; if this method is defined,
x
(arg1, arg2, ...)
is a shorthand for
x
.__call__(arg1, arg2, ...)
.
Manual de referencia de Python
Anterior:
3.3.2 Customizing attribute access
Niv. superior:
3.3 Special method names
Siguiente:
3.3.4 Emulating sequence and
Ver
Sobre este documento...
para obtener información sobre sugerencias.