Cope 2.5.0
My personal "standard library" of all the generally useful code I've written for various projects over the years
Loading...
Searching...
No Matches

◆ lazy_import()

def Cope.imports.lazy_import ( str  name)

Import a package upon being used, instead of immediately.

Useful for packages that want optional dependencies, like this one copied from https://docs.python.org/3/library/importlib.html If the package isn't installed or can't be found, it returns None

Definition at line 10 of file imports.py.