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

Method partition

crates/vm/src/bytes_inner.rs:691–697  ·  view source on GitHub ↗
(&self, sub: &Self, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

689 }
690
691 pub fn partition(&self, sub: &Self, vm: &VirtualMachine) -> PyResult<(Vec<u8>, bool, Vec<u8>)> {
692 self.elements.py_partition(
693 &sub.elements,
694 || self.elements.splitn_str(2, &sub.elements),
695 vm,
696 )
697 }
698
699 pub fn rpartition(
700 &self,

Callers 9

builtin_str.pyFile · 0.45
builtin_bytes.pyFile · 0.45
_get_sourceMethod · 0.45
source_from_cacheFunction · 0.45
_fill_cacheMethod · 0.45
__import__Function · 0.45
collect_innerMethod · 0.45
impl_pymoduleFunction · 0.45

Calls 1

py_partitionMethod · 0.80

Tested by

no test coverage detected