When you have a large package that contains nested submodules this allows the nested submodules to refer to one another without having to pull in or know much about or explicitly import the entire top-level tree. In contrast to Python's relative imports, we don't care if a file is invoked as a main program or as part of a module in the collection.
When you have a large package that contains nested submodules this allows the nested submodules to refer to one another without having to pull in or know much about or explicitly import the entire top-level tree. In contrast to Python's relative imports, we don't care if a file is invoked as a main program or as part of a module in the collection.