We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac48968 commit 6f0c306Copy full SHA for 6f0c306
vm/src/stdlib/itertools.rs
@@ -404,7 +404,15 @@ mod decl {
404
}
405
406
#[pyimpl(with(IterNext, Constructor), flags(BASETYPE))]
407
- impl PyItertoolsStarmap {}
+ impl PyItertoolsStarmap {
408
+ #[pymethod(magic)]
409
+ fn reduce(zelf: PyRef<Self>) -> (PyTypeRef, (PyObjectRef, PyIter)) {
410
+ (
411
+ zelf.class().clone(),
412
+ (zelf.function.clone(), zelf.iterable.clone()),
413
+ )
414
+ }
415
416
impl IterNextIterable for PyItertoolsStarmap {}
417
impl IterNext for PyItertoolsStarmap {
418
fn next(zelf: &Py<Self>, vm: &VirtualMachine) -> PyResult<PyIterReturn> {
0 commit comments