(&self, py: Python, attr_name: N)
| 74 | /// This is equivalent to the Python expression 'del self.attr_name'. |
| 75 | #[inline] |
| 76 | fn delattr<N>(&self, py: Python, attr_name: N) -> PyResult<()> |
| 77 | where |
| 78 | N: ToPyObject, |
| 79 | { |
| 80 | attr_name.with_borrowed_ptr(py, |attr_name| unsafe { |
| 81 | err::error_on_minusone(py, ffi::PyObject_DelAttr(self.as_ptr(), attr_name)) |
| 82 | }) |
| 83 | } |
| 84 | |
| 85 | /// Compares two Python objects. |
| 86 | /// |
nothing calls this directly
no test coverage detected