PyDocs

Nav

Python Runtime Services

module.__lazy_modules__

builtins

attribute · Added in 3.15
A container (an object implementing __contains__()) of fully qualified module name strings. When defined at module scope, any regular import statement in that module whose target module name appears in this container is treated as a lazy import, as if the lazy keyword had been used. Imports inside functions, class bodies, or try/except/finally blocks are unaffected.
0 Examples
No examples for builtins/module.__lazy_modules__.
See Also
No see-alsos for builtins/module.__lazy_modules__
0 Notes
No notes for module.__lazy_modules__