Does python 3.7 offer a way to import modules and alias only the submodules?
Suppose I have a module named module with a submodule ridiculously_long_submodule_name that I'd like to alias with short_submodule
Is there a way to alias just the submodule so I can call it via module.short_submodule?
I tried the obvious from module import ridiculously_long_submodule_name as module.short_submodule resulting in a syntax error.
I'd really like to avoid importing it without the main module name in front because of confusion issues with the rest of my code
from module import ridiculously_long_submodule_name as short_submodule?from module import ridiculously_long_submodule_name as module_short_submodule?