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

Method __len__

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

Source from the content-addressed store, hash-verified

207 }
208
209 fn __len__(&self) -> usize {
210 self.borrow_buf().len()
211 }
212
213 #[pymethod]
214 fn __sizeof__(&self) -> usize {

Callers 3

as_bufferMethod · 0.45
__length_hint__Method · 0.45
__setstate__Method · 0.45

Calls 2

lenMethod · 0.45
borrow_bufMethod · 0.45

Tested by

no test coverage detected