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

Method __reduce__

crates/vm/src/builtins/enumerate.rs:68–73  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

66impl Py<PyEnumerate> {
67 #[pymethod]
68 fn __reduce__(&self) -> (PyTypeRef, (PyIter, BigInt)) {
69 (
70 self.class().to_owned(),
71 (self.iterable.clone(), self.counter.read().clone()),
72 )
73 }
74}
75
76impl SelfIter for PyEnumerate {}

Callers

nothing calls this directly

Calls 7

builtins_reversedFunction · 0.85
to_ownedMethod · 0.45
classMethod · 0.45
cloneMethod · 0.45
readMethod · 0.45
reduceMethod · 0.45
lockMethod · 0.45

Tested by

no test coverage detected