Question 76
What function from the importlib module can be used to explicitly reload an imported module?
importlib.reload(module) reloads a previously imported module, re-executing top-level statements.
What function from the importlib module can be used to explicitly reload an imported module?
importlib.reload(module) reloads a previously imported module, re-executing top-level statements.
What is the effect of prefixing an import statement with a dot, e.g. from . import helper?
Dot . indicates a relative import from the current package.
If module A imports module B and module B imports module A, what is this scenario called?
When two or more modules depend on each other, it is called a circular import (or cyclic dependency).
Which built-in function returns a dictionary of current global symbol table variables?
globals() returns a dictionary representing the current global namespace.
In from module import func as f, what is f?
as f binds the imported function object to the name f in the importing namespace.