Is there a nice way to do this without just listing each one on a separate line (like the working example below)?
from module import func1 as name1
from module import func2 as name2
Is there a nice way to do this without just listing each one on a separate line (like the working example below)?
from module import func1 as name1
from module import func2 as name2
You can import the attributes with aliases in one line:
from module import func1 as name1, func2 as name2