We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f624e8e commit 7848e06Copy full SHA for 7848e06
vm/src/stdlib/itertools.rs
@@ -202,6 +202,13 @@ mod decl {
202
fn reduce(zelf: PyRef<Self>) -> (PyTypeRef, (BigInt,)) {
203
(zelf.class().clone(), (zelf.cur.read().clone(),))
204
}
205
+
206
+ #[pymethod(magic)]
207
+ fn repr(&self) -> PyResult<String> {
208
+ let cur = self.cur.read();
209
210
+ Ok(format!("count({})", cur))
211
+ }
212
213
impl IterNextIterable for PyItertoolsCount {}
214
impl IterNext for PyItertoolsCount {
0 commit comments