MCPcopy Create free account
hub / github.com/ml-explore/mlx / gc_func_tp_clear

Function gc_func_tp_clear

python/src/mlx_func.cpp:31–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29};
30
31int gc_func_tp_clear(PyObject* self) {
32 gc_func* w = (gc_func*)self;
33 Py_CLEAR(w->func);
34 return 0;
35}
36
37PyObject* gc_func_get_doc(PyObject* self, void*) {
38 return PyObject_GetAttrString(((gc_func*)self)->func, "__doc__");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected