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

Method __length_hint__

crates/vm/src/builtins/tuple.rs:646–648  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

644impl PyTupleIterator {
645 #[pymethod]
646 fn __length_hint__(&self) -> usize {
647 self.internal.lock().length_hint(|obj| obj.len())
648 }
649
650 #[pymethod]
651 fn __setstate__(&self, state: PyObjectRef, vm: &VirtualMachine) -> PyResult<()> {

Callers

nothing calls this directly

Calls 3

length_hintMethod · 0.45
lockMethod · 0.45
lenMethod · 0.45

Tested by

no test coverage detected