pyo3/newsfragments/3871.added.md

2 lines
126 B
Markdown

Add `Py::drop_ref` to explicitly drop a `Py`` and immediately decrease the Python reference count if the GIL is already held.