Package smartcard :: Module ClassLoader
[hide private]
[frames] | no frames]

Module ClassLoader

source code

ClassLoader allows you to load modules from packages without hard-coding their class names in code; instead, they might be specified in a configuration file, as command-line parameters, or within an interface.

Source: Robert Brewer at the Python Cookbook: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/223972

License: PSF license (http://docs.python.org/license.html).

Functions [hide private]
 
get_mod(modulePath)
Import a module.
source code
 
get_func(fullFuncName)
Retrieve a function object from a full dotted-package name.
source code
 
get_class(fullClassName, parentClass=None)
Load a module and retrieve a class (NOT an instance).
source code
Variables [hide private]
  __package__ = None
hash(x)
Function Details [hide private]

get_class(fullClassName, parentClass=None)

source code 

Load a module and retrieve a class (NOT an instance).

If the parentClass is supplied, className must be of parentClass or a subclass of parentClass (or None is returned).