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

Method clear

crates/stdlib/src/array.rs:739–741  ·  view source on GitHub ↗
(zelf: &Py<Self>, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

737
738 #[pymethod]
739 fn clear(zelf: &Py<Self>, vm: &VirtualMachine) -> PyResult<()> {
740 zelf.try_resizable(vm)?.clear()
741 }
742
743 #[pymethod]
744 fn buffer_info(&self) -> (usize, usize) {

Callers

nothing calls this directly

Calls 1

try_resizableMethod · 0.80

Tested by

no test coverage detected