Logo Search packages:      
Sourcecode: ipython version File versions  Download package

def IPython::kernel::parallelfunction::ParallelFunction::__call__ (   self,
  func 
)

Decorate a function to make it run in parallel.

Definition at line 97 of file parallelfunction.py.

00097                             :
        """
        Decorate a function to make it run in parallel.
        """
        assert isinstance(func, (str, FunctionType)), "func must be a fuction or str"
        self.func = func
        def call_function(*sequences):
            return self.mapper.map(self.func, *sequences)
        return call_function

    


Generated by  Doxygen 1.6.0   Back to index