python Programming Glossary: pkg.mod
How to import a Python class that is in a directory above? http://stackoverflow.com/questions/1054271/how-to-import-a-python-class-that-is-in-a-directory-above a module in the pkg package then you will end up importing pkg.mod. If you execute from ..subpkg2 imprt mod from within pkg.subpkg1..
Why does Python's __import__ require fromlist? http://stackoverflow.com/questions/2724260/why-does-pythons-import-require-fromlist by import with two main categories import pkg import pkg.mod from pkg import mod mod2 from pkg.mod import func func2 from.. import pkg import pkg.mod from pkg import mod mod2 from pkg.mod import func func2 from pkg.mod import submod In the first and.. pkg import mod mod2 from pkg.mod import func func2 from pkg.mod import submod In the first and the second case the import statement..
|