Python Reference Manual
Previous:
3.3.2 Customizing attribute access
Up:
3.3 Special method names
Next:
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, ...)
.
Python Reference Manual
Previous:
3.3.2 Customizing attribute access
Up:
3.3 Special method names
Next:
3.3.4 Emulating sequence and
Release 2.1.3, documentation updated on April 8, 2002.
See
About this document...
for information on suggesting changes.