def setdefault(self, key, factory):
        with self._lock:
            try:
                rv = self._load_key(key)
            except __HOLE__:
                self._local[key] = rv = factory()
            return rv
dataset/ETHPy150Open pallets/werkzeug/examples/cupoftee/db.py/Database.setdefault