snakeoil.delayed package¶
Module contents¶
- snakeoil.delayed.import_module(target: str, force_proxy=False) ModuleType[source]¶
Import a module at time of access if it’s not already imported. This is a shim for python’s lazy import in 3.15
- Parameters:
target – the python namespace path of what to import. snakeoil.klass for example.
force_proxy – Even if the module is in sys.modules, still return a proxy. This is a break glass control only relevant for hard cycle breaking.
- snakeoil.delayed.regexp(pattern, flags=0)¶
Compile a regular expression pattern, returning a Pattern object.