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

Class SleepSqrTestCallable


Callable for testing.

Instance Methods [hide private]
 
__call__(self, data)
Return the squared data[0] after sleeping for data[1] seconds.

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

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __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)

 
Return the squared data[0] after sleeping for data[1] seconds.

Overrides: TaskCallable.__call__