In Python, a module can have functions, classes or both in the same module. When I am importing module into another module, is there a way to determine if the module has just functions or classes or both?
The reason I ask this is because classes will have to instantiated as objects whereas functions don't. So everytime I import
, I want to know what I dealing with without getting into opening the module esp. the external modules.