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

Method __setstate__

crates/stdlib/src/array.rs:1393–1397  ·  view source on GitHub ↗
(&self, state: PyObjectRef, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

1391 impl PyArrayIter {
1392 #[pymethod]
1393 fn __setstate__(&self, state: PyObjectRef, vm: &VirtualMachine) -> PyResult<()> {
1394 self.internal
1395 .lock()
1396 .set_state(state, |obj, pos| pos.min(obj.__len__()), vm)
1397 }
1398
1399 #[pymethod]
1400 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