Searched refs:wr_callback (Results 1 – 5 of 5) sorted by relevance
31 self->wr_callback = callback; in init_weakref()56 PyObject *callback = self->wr_callback; in clear_weakref()76 self->wr_callback = NULL; in clear_weakref()99 callback = self->wr_callback; in _PyWeakref_ClearRef()100 self->wr_callback = NULL; in _PyWeakref_ClearRef()102 self->wr_callback = callback; in _PyWeakref_ClearRef()117 Py_VISIT(self->wr_callback); in gc_traverse()241 if (head != NULL && head->wr_callback == NULL) { in get_basic_refs()250 && head->wr_callback == NULL in get_basic_refs()361 {"__callback__", T_OBJECT, offsetof(PyWeakReference, wr_callback), READONLY},[all …]
26 PyObject *wr_callback; member
712 PyObject *wr_callback; member744 wr = PyWeakref_NewRef((PyObject *) dummy, self->wr_callback); in _local_create_dummy()820 self->wr_callback = PyCFunction_NewEx(&wr_callback_def, wr, NULL); in local_new()822 if (self->wr_callback == NULL) { in local_new()851 Py_CLEAR(self->wr_callback); in local_clear()
819 if (wr->wr_callback == NULL) { in handle_weakrefs()883 callback = wr->wr_callback; in handle_weakrefs()
2105 wr_callback = weakref.ref(callback)2109 self.assertIsNotNone(wr_callback())2115 self.assertIsNone(wr_callback())