Python Reference Manual
Previous:
3.3.3 Customizing class creation
Up:
3.3 Special method names
Next:
3.3.5 Emulating container types
3.3.4 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.3 Customizing class creation
Up:
3.3 Special method names
Next:
3.3.5 Emulating container types
Release 2.4.2, documentation updated on 28 September 2005.
See
About this document...
for information on suggesting changes.
Document provided by
Web Master Resources
and hosted at
Speedy Domain Registration Company