If my foo.py
is merely foo_var = 1
and bar.py
is merely import foo
, I know I can write baz.py
that says from bar import foo_var
, but should I? (Or should I instead do from foo import foo_var
?)
Is there any reason why chaining imports like this would be bad?
import X
andfrom X import Y
, not whether I should import from the original declaring module or from modules that imported from that original module instead.