def subdict(data, *attrs):
    result = {}
    result.update([(key, data[key]) for key in attrs])
    return result
Returns a subset of the keys of a dictionary.
dataset/ETHPy150Open adieu/djangotoolbox/djangotoolbox/utils.py/subdict