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

Method len

crates/vm/src/builtins/weakproxy.rs:87–89  ·  view source on GitHub ↗
(&self, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

85 }
86
87 fn len(&self, vm: &VirtualMachine) -> PyResult<usize> {
88 self.try_upgrade(vm)?.length(vm)
89 }
90
91 #[pymethod]
92 fn __bytes__(&self, vm: &VirtualMachine) -> PyResult {

Callers

nothing calls this directly

Calls 2

lengthMethod · 0.45
try_upgradeMethod · 0.45

Tested by

no test coverage detected