Here are the slides, example code programs and notebooks from this talk.
- Modules are loaded exactly once
- Custom import
- Stitching submodules
- Export decorator
- Fun with directories and zip
- Auto installing
- How you run the module affects import subsystem
- Modules have own unique view of global variables
- Explore guts of loaded modules
From x import y
, actually loads entire module- Live module reloading gotchas
Image source credits
David Beazley Talk, "Python Imports, Modules, Packages, live and let die"