def get_method_names ( obj ) : method_names = [ ] for method_name in dir ( obj ) : method = getattr ( obj , method_name ) if MethodReflector . _is_method ( method , method_name ) : method_names . append ( method_name ) return method_names
python how to get all object method
Gets names of all methods implemented in specified object .
def get_method_names(obj):
        """
        Gets names of all methods implemented in specified object.

        :param obj: an object to introspect.

        :return: a list with method names.
        """
        method_names = []
        
        for method_name in dir(obj):

            method = getattr(obj, method_name)

            if MethodReflector._is_method(method, method_name):
                method_names.append(method_name)

        return method_names