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

Method __len__

crates/vm/src/builtins/range.rs:309–311  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

307 }
308
309 fn __len__(&self) -> BigInt {
310 self.compute_length()
311 }
312
313 #[pymethod]
314 fn __reduce__(&self, vm: &VirtualMachine) -> (PyTypeRef, PyTupleRef) {

Callers 3

__reversed__Method · 0.45
protocol_lengthMethod · 0.45
iterMethod · 0.45

Calls 1

compute_lengthMethod · 0.80

Tested by

no test coverage detected