Replies: 1 comment 2 replies
-
These are non-null pointers to Python objects, dropping them just decreases the reference count by one. If you don't have the GIL held when drop occurs, PyO3 will remember the reference to decrease later on next GIL acquisition. If you want to zero-out the pointer I think you'd want |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For pedagogical purposes, is there a short introduction on how custom wrapper arounds
PyType
, e.g.Py<PyString>
are dropped? My intent is to explore the possibility of having the traitZeroize
fromzeroize
crate implemented on custom #[pyclass].Beta Was this translation helpful? Give feedback.
All reactions