We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aea56cf commit 4ed5d9dCopy full SHA for 4ed5d9d
src/iterators.rs
@@ -546,6 +546,10 @@ macro_rules! custom_vec_iter_impl {
546
Python::with_gil(|py| Ok(format!("{}{}", stringify!($name), self.$data.str(py)?)))
547
}
548
549
+ fn __repr__(&self) -> PyResult<String> {
550
+ self.__str__()
551
+ }
552
+
553
fn __hash__(&self) -> PyResult<u64> {
554
let mut hasher = DefaultHasher::new();
555
Python::with_gil(|py| PyHash::hash(&self.$data, py, &mut hasher))?;
0 commit comments