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

Method __length_hint__

crates/vm/src/builtins/list.rs:686–688  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

684impl PyListIterator {
685 #[pymethod]
686 fn __length_hint__(&self) -> usize {
687 self.internal.lock().length_hint(|obj| obj.__len__())
688 }
689
690 #[pymethod]
691 fn __setstate__(&self, state: PyObjectRef, vm: &VirtualMachine) -> PyResult<()> {

Callers

nothing calls this directly

Calls 4

rev_length_hintMethod · 0.80
length_hintMethod · 0.45
lockMethod · 0.45
__len__Method · 0.45

Tested by

no test coverage detected