(&self, py: Python, key: K)
| 289 | /// This is equivalent to the Python expression: 'self[key]' |
| 290 | #[inline] |
| 291 | fn get_item<K>(&self, py: Python, key: K) -> PyResult<PyObject> |
| 292 | where |
| 293 | K: ToPyObject, |
| 294 | { |
| 295 | key.with_borrowed_ptr(py, |key| unsafe { |
| 296 | err::result_from_owned_ptr(py, ffi::PyObject_GetItem(self.as_ptr(), key)) |
| 297 | }) |
| 298 | } |
| 299 | |
| 300 | /// Sets an item value. |
| 301 | /// This is equivalent to the Python expression 'self[key] = value'. |
nothing calls this directly
no test coverage detected