Lines Matching refs:set
39 PyObject *_abc_cache; /* Normal set of weak references. */
40 PyObject *_abc_negative_cache; /* Normal set of weak references. */
123 PyErr_SetString(PyExc_TypeError, "_abc_impl is set to a wrong type");
131 _in_weak_set(PyObject *set, PyObject *obj)
133 if (set == NULL || PySet_GET_SIZE(set) == 0) {
144 int res = PySet_Contains(set, ref);
152 PyObject *set;
153 set = PyWeakref_GET_OBJECT(setweakref);
154 if (set == Py_None) {
157 Py_INCREF(set);
158 if (PySet_Discard(set, objweakref) < 0) {
159 Py_DECREF(set);
162 Py_DECREF(set);
180 PyObject *set = *pset;
183 wr = PyWeakref_NewRef(set, NULL);
198 int ret = PySet_Add(set, ref);
294 // Compute set of abstract method names.
426 Internal ABC helper for class set-up. Should be never used outside abc module.
449 /* If __abc_tpflags__ & COLLECTION_FLAGS is set, then set the corresponding bit(s)
653 // Return 1 when result is set.
766 // Exception occurred or result is set.
832 // Weakref callback may remove entry from set.