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

Method __reduce__

crates/vm/src/builtins/set.rs:764–769  ·  view source on GitHub ↗
(
        zelf: PyRef<Self>,
        vm: &VirtualMachine,
    )

Source from the content-addressed store, hash-verified

762
763 #[pymethod]
764 fn __reduce__(
765 zelf: PyRef<Self>,
766 vm: &VirtualMachine,
767 ) -> PyResult<(PyTypeRef, PyTupleRef, Option<PyDictRef>)> {
768 reduce_set(zelf.as_ref(), vm)
769 }
770
771 #[pyclassmethod]
772 fn __class_getitem__(cls: PyTypeRef, args: PyObjectRef, vm: &VirtualMachine) -> PyGenericAlias {

Callers

nothing calls this directly

Calls 9

reduce_setFunction · 0.85
builtins_iterFunction · 0.85
new_listMethod · 0.80
collectMethod · 0.80
as_refMethod · 0.45
lockMethod · 0.45
skipMethod · 0.45
into_iterMethod · 0.45
keysMethod · 0.45

Tested by

no test coverage detected