Lines Matching refs:ob
25 init_weakref(PyWeakReference *self, PyObject *ob, PyObject *callback)
28 self->wr_object = ob;
36 new_weakref(PyObject *ob, PyObject *callback)
42 init_weakref(result, ob, callback);
292 PyObject *ob, *callback = NULL;
294 if (parse_weakref_init_args("__new__", args, kwargs, &ob, &callback)) {
298 if (!_PyType_SUPPORTS_WEAKREFS(Py_TYPE(ob))) {
301 Py_TYPE(ob)->tp_name);
306 list = GET_WEAKREFS_LISTPTR(ob);
317 list on ob can be mutated. This means that the ref and
323 init_weakref(self, ob, callback);
787 PyWeakref_NewRef(PyObject *ob, PyObject *callback)
793 if (!_PyType_SUPPORTS_WEAKREFS(Py_TYPE(ob))) {
796 Py_TYPE(ob)->tp_name);
799 list = GET_WEAKREFS_LISTPTR(ob);
810 list on ob can be mutated. This means that the ref and
814 result = new_weakref(ob, callback);
824 of weakrefs for ob. */
846 PyWeakref_NewProxy(PyObject *ob, PyObject *callback)
852 if (!_PyType_SUPPORTS_WEAKREFS(Py_TYPE(ob))) {
855 Py_TYPE(ob)->tp_name);
858 list = GET_WEAKREFS_LISTPTR(ob);
869 list on ob can be mutated. This means that the ref and
873 result = new_weakref(ob, callback);
877 if (PyCallable_Check(ob)) {
889 of weakrefs for ob. */