def pop(self, k, default=Sentinel):
        with self._database.transaction():
            node, is_single = self.convert_node(k)
            try:
                res = self[k]
            except __HOLE__:
                if default is Sentinel:
                    raise
                return default
            del(self[node])
        return res
dataset/ETHPy150Open coleifer/peewee/playhouse/kv.py/KeyStore.pop