Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to create a list of functions

method_list = [func for func in dir(Foo) if callable(getattr(Foo, func)) and not func.startswith("__")]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #create #list #functions
ADD COMMENT
Topic
Name
6+8 =