Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

get all methods of an instance

object_methods = [method_name for method_name in dir(object)
                  if callable(getattr(object, method_name))]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #methods #instance
ADD COMMENT
Topic
Name
3+8 =