我们从Python开源项目中,提取了以下10个代码示例,用于说明如何使用UserDict.UserDict.__delitem__()。
def __delitem__(self, key): k=self._lowerOrReturn(key) del self.data[k]
def __delitem__(self, key): UserDict.__delitem__(self, key) self._order.remove(key)
def __delitem__(self, key): UserDict.__delitem__(self, key) self._keys.remove(key)
def __delitem__(self, i): return self
def __delitem__(self, key): del self._reversed[self[key]] if PY2: return UserDict.__delitem__(self, key) else: return super(TwoWayDict, self).__delitem__(key)