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

Method __setstate__

crates/vm/src/builtins/enumerate.rs:122–124  ·  view source on GitHub ↗
(&self, state: PyObjectRef, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

120
121 #[pymethod]
122 fn __setstate__(&self, state: PyObjectRef, vm: &VirtualMachine) -> PyResult<()> {
123 self.internal.lock().set_state(state, |_, pos| pos, vm)
124 }
125
126 #[pymethod]
127 fn __reduce__(&self, vm: &VirtualMachine) -> PyTupleRef {

Callers

nothing calls this directly

Calls 2

set_stateMethod · 0.80
lockMethod · 0.45

Tested by

no test coverage detected