Computer Science, asked by melvinlty7554, 11 months ago

How do I import all the submodules of a Python namespace package?

Answers

Answered by omegads04
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