Exemplo n.º 1
0
func (m *MappingProtocol) DelItem(key Object) error {
	ret := C.PyObject_DelItem(cmp(m), c(key))
	return int2Err(ret)
}
Exemplo n.º 2
0
// DelItem deletes the element from "obj" that corresponds to "key".  This is
// equivalent to the Python "del obj[key]".
func (obj *Base) DelItem(key *Base) error {
	ret := C.PyObject_DelItem(obj.c(), key.c())
	return int2Err(ret)
}
Exemplo n.º 3
0
// DelItem deletes the element from "obj" that corresponds to "key".  This is
// equivalent to the Python "del obj[key]".
func (obj *BaseObject) DelItem(key Object) error {
	ret := C.PyObject_DelItem(c(obj), c(key))
	return int2Err(ret)
}