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

Method readline

crates/vm/src/stdlib/_io.rs:316–318  ·  view source on GitHub ↗
(&mut self, size: Option<usize>, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

314 }
315
316 fn readline(&mut self, size: Option<usize>, vm: &VirtualMachine) -> PyResult<Vec<u8>> {
317 self.read_until(size, b'\n', vm)
318 }
319
320 fn read_until(
321 &mut self,

Callers

nothing calls this directly

Calls 15

newFunction · 0.85
check_closedFunction · 0.85
codepoint_range_endFunction · 0.85
SlicedStrClass · 0.85
read_untilMethod · 0.80
with_refMethod · 0.80
ends_withMethod · 0.80
write_pendingMethod · 0.80
read_chunkMethod · 0.80
set_decoded_charsMethod · 0.80
utf8_lenMethod · 0.80
is_full_sliceMethod · 0.80

Tested by

no test coverage detected