Lines Matching refs:ob
24 init_weakref(PyWeakReference *self, PyObject *ob, PyObject *callback) in init_weakref() argument
27 self->wr_object = ob; in init_weakref()
35 new_weakref(PyObject *ob, PyObject *callback) in new_weakref() argument
41 init_weakref(result, ob, callback); in new_weakref()
295 PyObject *ob, *callback = NULL; in weakref___new__() local
297 if (parse_weakref_init_args("__new__", args, kwargs, &ob, &callback)) { in weakref___new__()
301 if (!PyType_SUPPORTS_WEAKREFS(Py_TYPE(ob))) { in weakref___new__()
304 Py_TYPE(ob)->tp_name); in weakref___new__()
309 list = GET_WEAKREFS_LISTPTR(ob); in weakref___new__()
326 init_weakref(self, ob, callback); in weakref___new__()
811 PyWeakref_NewRef(PyObject *ob, PyObject *callback) in PyWeakref_NewRef() argument
817 if (!PyType_SUPPORTS_WEAKREFS(Py_TYPE(ob))) { in PyWeakref_NewRef()
820 Py_TYPE(ob)->tp_name); in PyWeakref_NewRef()
823 list = GET_WEAKREFS_LISTPTR(ob); in PyWeakref_NewRef()
838 result = new_weakref(ob, callback); in PyWeakref_NewRef()
870 PyWeakref_NewProxy(PyObject *ob, PyObject *callback) in PyWeakref_NewProxy() argument
876 if (!PyType_SUPPORTS_WEAKREFS(Py_TYPE(ob))) { in PyWeakref_NewProxy()
879 Py_TYPE(ob)->tp_name); in PyWeakref_NewProxy()
882 list = GET_WEAKREFS_LISTPTR(ob); in PyWeakref_NewProxy()
897 result = new_weakref(ob, callback); in PyWeakref_NewProxy()
901 if (PyCallable_Check(ob)) { in PyWeakref_NewProxy()