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

Method rpartition

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

Source from the content-addressed store, hash-verified

697 }
698
699 pub fn rpartition(
700 &self,
701 sub: &Self,
702 vm: &VirtualMachine,
703 ) -> PyResult<(Vec<u8>, bool, Vec<u8>)> {
704 self.elements.py_partition(
705 &sub.elements,
706 || self.elements.rsplitn_str(2, &sub.elements),
707 vm,
708 )
709 }
710
711 pub fn expandtabs(&self, options: anystr::ExpandTabsArgs) -> Vec<u8> {
712 let tabsize = options.tabsize();

Callers 12

builtin_str.pyFile · 0.45
builtin_bytes.pyFile · 0.45
cache_from_sourceFunction · 0.45
_get_sourcefileFunction · 0.45
is_packageMethod · 0.45
find_specMethod · 0.45
parentMethod · 0.45
_find_and_load_unlockedFunction · 0.45
_calc___package__Function · 0.45

Calls 1

py_partitionMethod · 0.80

Tested by

no test coverage detected