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

Method slot_del

crates/vm/src/types/slot.rs:1681–1686  ·  view source on GitHub ↗
(zelf: &PyObject, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

1679 #[inline] // for __del__
1680 #[pyslot]
1681 fn slot_del(zelf: &PyObject, vm: &VirtualMachine) -> PyResult<()> {
1682 let zelf = zelf
1683 .downcast_ref()
1684 .ok_or_else(|| vm.new_type_error("unexpected payload for __del__"))?;
1685 Self::del(zelf, vm)
1686 }
1687
1688 fn del(zelf: &Py<Self>, vm: &VirtualMachine) -> PyResult<()>;
1689}

Callers

nothing calls this directly

Implementers 8

socket.rscrates/stdlib/src/socket.rs
_asyncio.rscrates/stdlib/src/_asyncio.rs
overlapped.rscrates/stdlib/src/overlapped.rs
_io.rscrates/vm/src/stdlib/_io.rs
os.rscrates/vm/src/stdlib/os.rs
coroutine.rscrates/vm/src/builtins/coroutine.rs
generator.rscrates/vm/src/builtins/generator.rs
asyncgenerator.rscrates/vm/src/builtins/asyncgenerator.

Calls 2

ok_or_elseMethod · 0.80
downcast_refMethod · 0.80

Tested by

no test coverage detected