def del_keys(dic, *keys):
    """Delete several keys from a dict, ignoring those that don't exist.
    
    This modifies the dict in place.

    ::

        >>> d ={"A": 1, "B": 2, "C": 3}
        >>> del_keys(d, "A", "C")
        >>> d
        {'B': 2}
    """
    for key in keys:
        try:
            del dic[key]
        except __HOLE__:
            pass
dataset/ETHPy150Open mikeorr/WebHelpers2/webhelpers2/containers.py/del_keys