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

Method __setstate__

crates/vm/src/builtins/list.rs:691–695  ·  view source on GitHub ↗
(&self, state: PyObjectRef, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

689
690 #[pymethod]
691 fn __setstate__(&self, state: PyObjectRef, vm: &VirtualMachine) -> PyResult<()> {
692 self.internal
693 .lock()
694 .set_state(state, |obj, pos| pos.min(obj.__len__()), vm)
695 }
696
697 #[pymethod]
698 fn __reduce__(&self, vm: &VirtualMachine) -> PyTupleRef {

Callers

nothing calls this directly

Calls 4

set_stateMethod · 0.80
lockMethod · 0.45
minMethod · 0.45
__len__Method · 0.45

Tested by

no test coverage detected