3.4.4 Emulating callable objects
-
Called when the instance is ``called'' as a function; if this method
is defined,
x(arg1, arg2, ...)
is a shorthand forx.__call__(arg1, arg2, ...)
.
See About this document... for information on suggesting changes.