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

Method __length_hint__

crates/vm/src/builtins/bytearray.rs:873–875  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

871impl PyByteArrayIterator {
872 #[pymethod]
873 fn __length_hint__(&self) -> usize {
874 self.internal.lock().length_hint(|obj| obj.__len__())
875 }
876 #[pymethod]
877 fn __reduce__(&self, vm: &VirtualMachine) -> PyTupleRef {
878 let func = builtins_iter(vm);

Callers

nothing calls this directly

Calls 3

length_hintMethod · 0.45
lockMethod · 0.45
__len__Method · 0.45

Tested by

no test coverage detected