Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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_length
Method · 0.45
iter
Method · 0.45
Calls
1
compute_length
Method · 0.80
Tested by
no test coverage detected