def __delitem__(self, direct, key): if not direct: transaction = self.last() if key in transaction: del transaction[key] else: Dotkeys.__delitem__(self, key)
def __delitem__(self, direct, key): # firstly set targets self[key] = None # then continue with delete if not direct: transaction = self.current_tx if key in transaction: del transaction[key] else: Dotkeys.__delitem__(self, key)
def __delitem__(self, direct, key): # firstly set targets self[key] = None # then continue with delete if not direct: transaction = self.current_tx if key in transaction: del transaction[key] else: Dotkeys.__delitem__(self, key)
def __delitem__(self, direct, key): with self._write_lock: # firstly set targets self[key] = None # then continue with delete if not direct: transaction = self.last() if key in transaction: del transaction[key] else: Dotkeys.__delitem__(self, key)
def __delitem__(self, direct, key): with self._write_lock: # firstly set targets self[key] = None # then continue with delete if not direct: transaction = self.last() if key in transaction: del transaction[key] else: Dotkeys.__delitem__(self, key)