consider this foo.py:
bar = 'baz'
when I
from foo import bar
in foo.py is there find out that only bar
is imported, and not the whole module, or *
or something else?
Background
The actual code is a package / a package's __init__.py
where a bunch of imports from the rest of the package happen that expose what's typically used. But when importing specific objects, all of that could be skipped. Some of those imports are rather heavy.