def poplist(self, key, *pa):
        """
        If key exists remove and return keyed item's value list,
        else return the optional following positional argument.
        If the optional positional arg is not provided and key does not exit
        then raise KeyError.

        """
        try:
            val = super(modict, self).pop(key)
        except __HOLE__:
            if pa:
                return pa[0]
            else:
                raise

        return val
dataset/ETHPy150Open ioflo/ioflo/ioflo/aid/odicting.py/modict.poplist