Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

get all functions from a module as string list python

from inspect import getmembers, isfunction

from somemodule import foo
print(getmembers(foo, isfunction))

# source
# https://stackoverflow.com/questions/139180/how-to-list-all-functions-in-a-python-module
 
PREVIOUS NEXT
Tagged: #functions #module #string #list #python
ADD COMMENT
Topic
Name
9+1 =