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

Method __reduce__

crates/vm/src/builtins/list.rs:698–706  ·  view source on GitHub ↗
(&self, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

696
697 #[pymethod]
698 fn __reduce__(&self, vm: &VirtualMachine) -> PyTupleRef {
699 let func = builtins_iter(vm);
700 self.internal.lock().reduce(
701 func,
702 |x| x.clone().into(),
703 |vm| vm.ctx.new_list(Vec::new()).into(),
704 vm,
705 )
706 }
707}
708
709impl PyListIterator {

Callers

nothing calls this directly

Calls 7

builtins_iterFunction · 0.85
newFunction · 0.85
builtins_reversedFunction · 0.85
new_listMethod · 0.80
reduceMethod · 0.45
lockMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected