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

Method split

crates/vm/src/builtins/bytearray.rs:449–456  ·  view source on GitHub ↗
(
        &self,
        options: ByteInnerSplitOptions,
        vm: &VirtualMachine,
    )

Source from the content-addressed store, hash-verified

447
448 #[pymethod]
449 fn split(
450 &self,
451 options: ByteInnerSplitOptions,
452 vm: &VirtualMachine,
453 ) -> PyResult<Vec<PyObjectRef>> {
454 self.inner()
455 .split(options, |s, vm| vm.ctx.new_bytearray(s.to_vec()).into(), vm)
456 }
457
458 #[pymethod]
459 fn rsplit(

Callers

nothing calls this directly

Calls 3

new_bytearrayMethod · 0.80
to_vecMethod · 0.80
innerMethod · 0.45

Tested by

no test coverage detected