PyDocs

Nav

Python Runtime Services

set_lazy_imports

sys

function · Added in 3.15
  • set_lazy_imports(mode)
Sets the global lazy imports mode.

The mode parameter must be one of the following strings:
- "all": All top-level imports become potentially lazy
- "normal": Only explicitly marked imports (with 'lazy' keyword) are
  lazy

In addition to the mode, lazy imports can be controlled via the filter
provided to sys.set_lazy_imports_filter
0 Examples
No examples for sys/set_lazy_imports.
See Also
No see-alsos for sys/set_lazy_imports
0 Notes
No notes for set_lazy_imports