Trees | Indices | Help |
|
---|
|
object --+ | ModuleProxy
A class to use as a placeholder for a non-essential module, raising an exception when something tries to use it.
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
|
x.__init__(...) initializes x; see help(type(x)) for signature
|
Always return False, indicating that the instance is not usable as a module. This allows for conditional behavior to be set up, based on a check for a proxy module. For example: matplotlib = try_import("matplotlib") if matplotlib: create_pretty_graph() else: print_boring_numbers() |
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Oct 26 01:00:02 2016 | http://epydoc.sourceforge.net |