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

Method __reduce__

crates/vm/src/builtins/object.rs:527–529  ·  view source on GitHub ↗
(obj: PyObjectRef, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

525
526 #[pymethod]
527 fn __reduce__(obj: PyObjectRef, vm: &VirtualMachine) -> PyResult {
528 common_reduce(obj, 0, vm)
529 }
530
531 #[pymethod]
532 fn __reduce_ex__(obj: PyObjectRef, proto: usize, vm: &VirtualMachine) -> PyResult {

Callers

nothing calls this directly

Calls 1

common_reduceFunction · 0.85

Tested by

no test coverage detected