(&self, py: Python)
| 175 | /// This is equivalent to the Python expression 'repr(self)'. |
| 176 | #[inline] |
| 177 | fn repr(&self, py: Python) -> PyResult<PyString> { |
| 178 | unsafe { err::result_cast_from_owned_ptr(py, ffi::PyObject_Repr(self.as_ptr())) } |
| 179 | } |
| 180 | |
| 181 | /// Compute the string representation of self. |
| 182 | /// This is equivalent to the Python expression 'str(self)'. |
no test coverage detected