Return a new dictionary that contains the same key-value pairs as self. Corresponds to `dict(self)` in Python.
(&self, py: Python)
| 40 | /// Return a new dictionary that contains the same key-value pairs as self. |
| 41 | /// Corresponds to `dict(self)` in Python. |
| 42 | pub fn copy(&self, py: Python) -> PyResult<PyDict> { |
| 43 | unsafe { err::result_cast_from_owned_ptr(py, ffi::PyDict_Copy(self.0.as_ptr())) } |
| 44 | } |
| 45 | |
| 46 | /// Empty an existing dictionary of all key-value pairs. |
| 47 | #[inline] |
nothing calls this directly
no test coverage detected