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

Method __xor__

crates/vm/src/builtins/dict.rs:1177–1181  ·  view source on GitHub ↗
(zelf: PyRef<Self>, other: ArgIterable, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

1175 }
1176
1177 fn __xor__(zelf: PyRef<Self>, other: ArgIterable, vm: &VirtualMachine) -> PyResult<PySet> {
1178 let zelf = Self::to_set(zelf, vm)?;
1179 let inner = zelf.symmetric_difference(other, vm)?;
1180 Ok(PySet { inner })
1181 }
1182
1183 fn __and__(zelf: PyRef<Self>, other: ArgIterable, vm: &VirtualMachine) -> PyResult<PySet> {
1184 let zelf = Self::to_set(zelf, vm)?;

Callers

nothing calls this directly

Implementers 1

dict.rscrates/vm/src/builtins/dict.rs

Calls 1

symmetric_differenceMethod · 0.45

Tested by

no test coverage detected