Package multi :: Module misc
[hide private]
[frames] | no frames]

Module misc

source code

The non-public module for storing the API functions and classes of the multi-processor package.

This is for internal use only. To access the multi-processor API, see the __init__ module.

Classes [hide private]
  Capturing_exception
A wrapper exception for an exception captured on a slave processor.
  Result
A basic result object returned from a slave processor via return_object.
  Result_string
A simple result from a slave containing a result.
  Verbosity
A special singleton structure for changing the verbosity level on the fly.
Functions [hide private]
list of class module instances or None
import_module(module_path)
Import the python module named by module_path.
source code
 
raise_unimplemented(method)
Standard function for raising NotImplementedError for unimplemented abstract methods.
source code
Variables [hide private]
  __package__ = 'multi'

Imports: importlib, sys, traceback, textwrap


Function Details [hide private]

import_module(module_path)

source code 

Import the python module named by module_path.

Parameters:
  • module_path (str) - A module path in python dot separated format. Note: this currently doesn't support relative module paths as defined by pep328 and python 2.5.
Returns: list of class module instances or None
The module path as a list of module instances or None if the module path cannot be found in the python path.

raise_unimplemented(method)

source code 

Standard function for raising NotImplementedError for unimplemented abstract methods.

Parameters:
  • method (class method) - The method which should be abstract.
Raises:
  • NotImplementedError - A not implemented exception with the method name as a parameter.