

def pop(self, key, *args):
    try:
        item = dict.__getitem__(self, key)
        self.__delitem__(key)
    except KeyError:
        if item:
            item = args[0]
        else:
            raise
    return item

dataset/ETHPy150Open kdart/pycopia/aid/pycopia/dictlib.py SortedDict.pop/VarMisuse@44/51 `args`->`item`