(&self, f: &mut fmt::Formatter)
| 338 | |
| 339 | impl fmt::Debug for PyObject { |
| 340 | fn fmt(&self, f: &mut fmt::Formatter) -> Result<(), fmt::Error> { |
| 341 | // TODO: we shouldn't use fmt::Error when repr() fails |
| 342 | let gil_guard = Python::acquire_gil(); |
| 343 | let py = gil_guard.python(); |
| 344 | let repr_obj = self.repr(py).map_err(|_| fmt::Error)?; |
| 345 | f.write_str(&repr_obj.to_string_lossy(py)) |
| 346 | } |
| 347 | } |
| 348 | |
| 349 | impl fmt::Display for PyObject { |
nothing calls this directly
no test coverage detected