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

Method __length_hint__

crates/vm/src/stdlib/_collections.rs:636–638  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

634
635 #[pymethod]
636 fn __length_hint__(&self) -> usize {
637 self.internal.lock().length_hint(|obj| obj.__len__())
638 }
639
640 #[pymethod]
641 fn __reduce__(

Callers

nothing calls this directly

Calls 3

length_hintMethod · 0.45
lockMethod · 0.45
__len__Method · 0.45

Tested by

no test coverage detected