MCPcopy Index your code
hub / github.com/RustPython/RustPython / __delattr__

Method __delattr__

crates/vm/src/builtins/object.rs:361–363  ·  view source on GitHub ↗
(obj: PyObjectRef, name: PyStrRef, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

359 /// Implement delattr(self, name).
360 #[pymethod]
361 fn __delattr__(obj: PyObjectRef, name: PyStrRef, vm: &VirtualMachine) -> PyResult<()> {
362 obj.generic_setattr(&name, PySetterValue::Delete, vm)
363 }
364
365 #[pyslot]
366 pub(crate) fn slot_setattro(

Callers

nothing calls this directly

Calls 1

generic_setattrMethod · 0.80

Tested by

no test coverage detected