Package mrv :: Module util :: Class Call
[hide private]
[frames] | no frames]

Class Call

source code

object --+
         |
        Call
Known Subclasses:

Call object encapsulating any code, thus providing a simple facade for it :note: derive from it if a more complex call is required
Instance Methods [hide private]
 
__call__(self, *args, **kwargs)
Execute the stored function on call :note: having args and kwargs set makes it more versatile
source code
 
__init__(self, func, *args, **kwargs)
Initialize object with function to call once this object is called
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]
  args
  func
  kwargs

Inherited from object: __class__

Method Details [hide private]

__init__(self, func, *args, **kwargs)
(Constructor)

source code 
Initialize object with function to call once this object is called
Overrides: object.__init__