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

Method del_attr

crates/vm/src/protocol/object.rs:273–276  ·  view source on GitHub ↗
(&self, attr_name: impl AsPyStr<'a>, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

271 }
272
273 pub fn del_attr<'a>(&self, attr_name: impl AsPyStr<'a>, vm: &VirtualMachine) -> PyResult<()> {
274 let attr_name = attr_name.as_pystr(&vm.ctx);
275 self.call_set_attr(vm, attr_name, PySetterValue::Delete)
276 }
277
278 // Perform a comparison, raising TypeError when the requested comparison
279 // operator is not supported.

Callers 2

delete_attrMethod · 0.80
delattrFunction · 0.80

Calls 2

as_pystrMethod · 0.80
call_set_attrMethod · 0.80

Tested by

no test coverage detected