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

Method __reduce__

crates/vm/src/builtins/tuple.rs:658–666  ·  view source on GitHub ↗
(&self, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

656
657 #[pymethod]
658 fn __reduce__(&self, vm: &VirtualMachine) -> PyTupleRef {
659 let func = builtins_iter(vm);
660 self.internal.lock().reduce(
661 func,
662 |x| x.clone().into(),
663 |vm| vm.ctx.empty_tuple.clone().into(),
664 vm,
665 )
666 }
667}
668
669impl PyTupleIterator {

Callers

nothing calls this directly

Calls 4

builtins_iterFunction · 0.85
reduceMethod · 0.45
lockMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected