Quote:
Originally Posted by Inverness
Perhaps you should ask people what they use __call__() in Python for.
|
Quote:
|
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, ...).
|
Strikes me that we can probably already achieve something similar with careful use of function prototyping.