March 2003
Intermediate to advanced
656 pages
39h 30m
English
__call__
__call__(self[,args...])When you call
x
(
[args...]
),
Python translates the operation into a call to
x
.__call__(
[args...]
).
The formal arguments for the call operation are the same as for the
__call__ method, minus the first argument. The
first argument, conventionally called self, refers
to x, and Python supplies it implicitly
and automatically, just as in any other call to a bound method.
Read now
Unlock full access