Feb-10-2019, 03:47 PM
But in terms of timing, the module is not loaded until the import statement. If bar.py was instead:
# bar.py def bar_func(): print(f'I am bar,hello also to <{foo.foo_func()}>') bar_func() import fooYou would get a name error when you tried tried to call bar_func, because foo is not loaded at that point.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures