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

Method __replace__

crates/vm/src/builtins/code.rs:1152–1154  ·  view source on GitHub ↗
(&self, args: ReplaceArgs, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

1150
1151 #[pymethod]
1152 pub fn __replace__(&self, args: ReplaceArgs, vm: &VirtualMachine) -> PyResult<Self> {
1153 self.replace(args, vm)
1154 }
1155
1156 #[pymethod]
1157 pub fn replace(&self, args: ReplaceArgs, vm: &VirtualMachine) -> PyResult<Self> {

Callers

nothing calls this directly

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected