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

Method __length_hint__

crates/vm/src/builtins/bytes.rs:751–753  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

749impl PyBytesIterator {
750 #[pymethod]
751 fn __length_hint__(&self) -> usize {
752 self.internal.lock().length_hint(|obj| obj.len())
753 }
754
755 #[pymethod]
756 fn __reduce__(&self, vm: &VirtualMachine) -> PyTupleRef {

Callers

nothing calls this directly

Calls 3

length_hintMethod · 0.45
lockMethod · 0.45
lenMethod · 0.45

Tested by

no test coverage detected