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

Function or_

crates/vm/src/builtins/type.rs:2772–2774  ·  view source on GitHub ↗
(zelf: PyObjectRef, other: PyObjectRef, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

2770}
2771
2772pub(crate) fn or_(zelf: PyObjectRef, other: PyObjectRef, vm: &VirtualMachine) -> PyResult {
2773 union_::or_op(zelf, other, vm)
2774}
2775
2776fn take_next_base(bases: &mut [Vec<PyTypeRef>]) -> Option<PyTypeRef> {
2777 for base in bases.iter() {

Callers 6

__or__Method · 0.70
__ror__Method · 0.70
__or__Method · 0.70
__ror__Method · 0.70
__or__Method · 0.70
as_numberMethod · 0.70

Calls 1

or_opFunction · 0.85

Tested by

no test coverage detected