Skip to main content

tp_dealloc

Function tp_dealloc 

Source
unsafe fn tp_dealloc(slf: *mut PyObject, type_obj: &Bound<'_, PyType>)
Expand description

Implementation of tp_dealloc.

§Safety

  • slf must be a valid pointer to an instance of the type at type_obj or a subclass.
  • slf must not be used after this call (as it will be freed).
⚠️ Internal Docs ⚠️ Not Public API 👉 Official Docs Here