Skip to main content

synthesized_clear

Function synthesized_clear 

Source
pub unsafe extern "C" fn synthesized_clear<T>(
    slf: *mut PyObject,
) -> c_int
where T: PyClass,
Expand description

tp_clear for a #[pyclass] which defines no __clear__ of its own: calls the base type and clears the instance __dict__ (if it is a #[pyclass(dict)]).

⚠️ Internal Docs ⚠️ Not Public API 👉 Official Docs Here