def array_as_starargs_decorator(fn):

    def starargs_as_list(self, *args, **kwargs):
        if isinstance(args, basestring) or (len(args) == 1 and not isinstance(args[0], tuple)):
            return fn(self, *to_list(args[0], []), **kwargs)
        else:
            return fn(self, *args, **kwargs)
    starargs_as_list.__doc__ = fn.__doc__
    return function_named(starargs_as_list, fn.__name__)
Filter a list of dicts
dataset/ETHPy150Open ralfonso/theory/theory/model/mpdutil.py/array_as_starargs_decorator--crossover with--dataset/ETHPy150Open dtroyer/python-openstackclient/openstackclient/api/utils.py/simple_filter