def copy_keys_except(dic, *keys):
    """Return a copy of the dict without the specified items.
    """
    ret = dic.copy()
    for key in keys:
        try:
            del ret[key]
        except __HOLE__:
            pass
    return ret
dataset/ETHPy150Open mikeorr/WebHelpers2/webhelpers2/containers.py/copy_keys_except