def invoke_member(obj, membername, *args, **kwargs):
  return getattr(obj, membername)(*args, **kwargs)
Retrieves a member of an object, then calls it with the provided arguments.
dataset/ETHPy150Open GoogleCloudPlatform/python-compat-runtime/appengine-compat/exported_appengine_sdk/google/appengine/ext/deferred/deferred.py/invoke_member