Skip to main content

dealloc

Function dealloc 

Source
pub(crate) unsafe fn dealloc(
    slf: *mut PyObject,
    f: for<'py> unsafe fn(Python<'py>, *mut PyObject),
)
Expand description

§Safety

  • slf must be either a valid ffi::PyObject or NULL
  • if slf isn’t NULL it must not be used again
  • The thread must be attached to the interpreter when this is called.
⚠️ Internal Docs ⚠️ Not Public API 👉 Official Docs Here