(&mut self)
| 60 | /// Dropping a `PyObject` decrements the reference count on the object by 1. |
| 61 | impl Drop for PyObject { |
| 62 | fn drop(&mut self) { |
| 63 | let _gil_guard = Python::acquire_gil(); |
| 64 | unsafe { |
| 65 | ffi::Py_DECREF(self.ptr.as_ptr()); |
| 66 | } |
| 67 | } |
| 68 | } |
| 69 | |
| 70 | impl PythonObject for PyObject { |