How do I import all the submodules of a Python namespace package?
Answers
Answered by
0
Namespace packages can be useful for a large collection of loosely-related packages .However, namespace packages come with several caveats and are not appropriate in all cases. A simple alternative is to use a prefix on all of your distributions such as import my namespace_ sub package_a my namespace_sub package_a as sub package_a to keep the import object short).
Similar questions
Hindi,
6 months ago
Accountancy,
6 months ago
Hindi,
6 months ago
Computer Science,
11 months ago
Science,
1 year ago