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

Method __len__

crates/vm/src/builtins/mappingproxy.rs:180–183  ·  view source on GitHub ↗
(&self, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

178 }
179
180 fn __len__(&self, vm: &VirtualMachine) -> PyResult<usize> {
181 let obj = self.to_object(vm)?;
182 obj.length(vm)
183 }
184
185 #[pymethod]
186 fn __reversed__(&self, vm: &VirtualMachine) -> PyResult {

Callers

nothing calls this directly

Calls 2

to_objectMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected