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

Method __setstate__

crates/vm/src/builtins/iter.rs:211–213  ·  view source on GitHub ↗
(&self, state: PyObjectRef, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

209
210 #[pymethod]
211 fn __setstate__(&self, state: PyObjectRef, vm: &VirtualMachine) -> PyResult<()> {
212 self.internal.lock().set_state(state, |_, pos| pos, vm)
213 }
214}
215
216impl SelfIter for PySequenceIterator {}

Callers

nothing calls this directly

Calls 2

set_stateMethod · 0.80
lockMethod · 0.45

Tested by

no test coverage detected