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

Method splitlines

crates/vm/src/builtins/bytearray.rs:500–503  ·  view source on GitHub ↗
(&self, options: anystr::SplitLinesArgs, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

498
499 #[pymethod]
500 fn splitlines(&self, options: anystr::SplitLinesArgs, vm: &VirtualMachine) -> Vec<PyObjectRef> {
501 self.inner()
502 .splitlines(options, |x| vm.ctx.new_bytearray(x.to_vec()).into())
503 }
504
505 #[pymethod]
506 fn zfill(&self, width: isize) -> Self {

Callers

nothing calls this directly

Calls 3

new_bytearrayMethod · 0.80
to_vecMethod · 0.80
innerMethod · 0.45

Tested by

no test coverage detected