Jul-29-2017, 05:07 AM
well, from pure practical perspective it makes sense that if you import something (e.g x) from some module, you don't need to import everything it needs in order to work. i.e. (its 'internal dependencies). The other way would mean that you need to study the code and import every such dependency every time. Think if that is not a module written by you, but some third-party package. Do you need to know all its nuts and bolts in order to import? The import does the trick in the background and everything that x needs to work is imported however only the name x is imported/accessible in your namespace.