I have a module that is loaded and I go through all of it's functions to check if they have a certain parameter. If they do, I run those functions;
The problem is the module will also have it's own imports, which add to the function list and some of the functions of the imported module will be run as well. I need to check if one function, given it's address belongs to a certain module.
import bar;
def function(special_param):
#dostuff
In bar
I have a function named other_function
with special_param
as well. By importing it, Python imports all of it's functions. How do I check if other_function
belongs to bar
?