예제 #1
0
 def __delitem__(self, key):
     with _lock:
         self.__check_closed()
         self.__size = -1
         res = lib.gdbm_delete(self.__ll_dbm, _fromstr(key))
         if res < 0:
             raise KeyError(key)
예제 #2
0
 def __delitem__(self, key):
     with _lock:
         self.__check_closed()
         self.__size = -1
         res = lib.gdbm_delete(self.__ll_dbm, _fromstr(key))
         if res < 0:
             raise KeyError(key)