Is there a way to ignore imported functions in a python module?
When using the following module module.py:
from inspect import getmembers, isfunction
import foo
def boo():
foo()
def moo():
pass
funcs = [mem[0] for mem in getmembers(module, isfunction)]
funcs equals : ['boo','moo', 'foo']
(including imported function 'foo')
I want funcs to include ['boo', 'moo']
only.