Package topo :: Package command :: Module basic :: Class ImportErrorObject
[hide private]
[frames] | no frames]

Class ImportErrorObject

source code


Raises an ImportError on any attempt to access an attribute, call, or get an item.

Useful to delay an ImportError until the point of use, thus allowing e.g. a class attribute to contain something from a non-core external module (e.g. pylab).

Delaying an ImportError until the point of use allows users to be informed of the possibility of having various extra functions on installation of a missing package.

Instance Methods [hide private]
 
__init__(self, module_name)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
_raise(self) source code
 
__call__(self, *args, **kw) source code
 
__getattr__(self, name) source code
 
__getitem__(self, i) source code

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, module_name)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)