I want to cut down on the lines of code that do the import.
In foo.py, there are several imports.
from a import aa
from b import bb
from c import cc
I want to change it like this in foo.py
from bar import wonderful_import #just one line
and bar.py is probably like this
from a import aa
from b import bb
from c import cc
# or
def wonderful_import():
from a import aa
from b import bb
from c import cc
But this doesn't work as I expected. How can I shorten the import line?
from bar import wonderful/-import
?