Scenario:
dirA/
__init__.py
file1.py
file2.py
dirB/
__init__.py
file11.py
file22.py
dirC/
__init__.py
file111.py
file222.py
I read on https://docs.python.org/2/tutorial/modules.html#tut-standardmodules that Contrarily, when using syntax like import item.subitem.subsubitem, each item except for the last must be a package; the last item can be a module or a package but can’t be a class or function or variable defined in the previous item.
Now because of above reading i have a numbers on doubt:
When i do write import dirA.dirB so whether this statement import modules inside dirC package too or only the modules inside dirB ?
what is the use of import dirA.dirB, because when i am using this statement, am still unable to use the modules inside the dirB sub package ?
and i know that to use the modules inside dirB i have to use the import dirA.dirB.file11