Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python list of all definitions in python file

from inspect import getmembers, isfunction

from somemodule import foo
print(getmembers(foo, isfunction))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #list #definitions #python #file
ADD COMMENT
Topic
Name
6+7 =