| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
DeferredImport
A trivial deferred module loader.
Use this to delay the actual import of a module until it's actually
needed.
It is constructed with a module name (that will be inserted into the
calling module's globals() as a side effect) and some literal code
that, when executed in the caller's global namespace, actually
imports the module, for instance::
utils.DeferredImport("wcs", "from astropy import wcs")
As a service for static code checking, you'll usually want to repeat
the module name, though:
wcs = utils.DeferredImport("wcs", "from astropy import wcs")
| Instance Methods | |||
|
|||
|
|||
|
Inherited from |
|||
| Class Variables | |
loadedModule = Nonehash(x) |
|
| Properties | |
|
Inherited from |
| Method Details |
x.__init__(...) initializes x; see help(type(x)) for signature
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Thu May 2 07:29:09 2019 | http://epydoc.sourceforge.net |