Package mdp :: Package parallel :: Class TaskCallableWrapper
[hide private]
[frames] | no frames]

Class TaskCallableWrapper


Wrapper to provide a fork method for simple callables like a function.

This wrapper is applied internally in Scheduler.

Instance Methods [hide private]
 
__call__(self, data)
Call the internal callable with the data and return the result.
 
__init__(self, task_callable)
Store and wrap the callable.

Inherited from unreachable.newobject: __long__, __native__, __nonzero__, __unicode__, next

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

    Inherited from TaskCallable
 
fork(self)
Return a fork of this callable, e.g.
 
setup_environment(self)
This hook method is only called when the callable is first called in a different Python process / environment.
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__call__(self, data)
(Call operator)

 
Call the internal callable with the data and return the result.

Overrides: TaskCallable.__call__

__init__(self, task_callable)
(Constructor)

 
Store and wrap the callable.

Overrides: object.__init__