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

Method __or__

crates/vm/src/builtins/dict.rs:374–382  ·  view source on GitHub ↗
(&self, other: PyObjectRef, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

372 }
373
374 fn __or__(&self, other: PyObjectRef, vm: &VirtualMachine) -> PyResult {
375 let other_dict: Result<PyDictRef, _> = other.downcast();
376 if let Ok(other) = other_dict {
377 let self_cp = self.copy();
378 self_cp.merge_dict(other, vm)?;
379 return Ok(self_cp.into_pyobject(vm));
380 }
381 Ok(vm.ctx.not_implemented())
382 }
383
384 #[pymethod]
385 fn pop(

Callers

nothing calls this directly

Calls 5

downcastMethod · 0.80
copyMethod · 0.45
merge_dictMethod · 0.45
into_pyobjectMethod · 0.45
not_implementedMethod · 0.45

Tested by

no test coverage detected