Lines Matching defs:obj
23 PyObject *obj; /* Set to NULL when iterator is exhausted */
269 /* If obj is a generic alias, substitute type variables params
270 with substitutions argitems. For example, if obj is list[T],
272 If obj doesn't have a __parameters__ attribute or that's not
273 a non-empty tuple, return a new reference to obj. */
275 subs_tvars(PyObject *obj, PyObject *params,
279 if (_PyObject_LookupAttr(obj, &_Py_ID(__parameters__), &subparams) < 0) {
313 obj = PyObject_GetItem(obj, subargs);
318 Py_INCREF(obj);
321 return obj;
563 set_orig_class(PyObject *obj, PyObject *self)
565 if (obj != NULL) {
566 if (PyObject_SetAttr(obj, &_Py_ID(__orig_class__), self) < 0) {
570 Py_DECREF(obj);
576 return obj;
583 PyObject *obj = PyObject_Call(alias->origin, args, kwds);
584 return set_orig_class(obj, self);
592 PyObject *obj = PyVectorcall_Function(alias->origin)(alias->origin, args, nargsf, kwnames);
593 return set_orig_class(obj, self);
850 if (gi->obj == NULL) {
854 gaobject *alias = (gaobject *)gi->obj;
860 Py_SETREF(gi->obj, NULL);
867 Py_XDECREF(gi->obj);
874 Py_VISIT(gi->obj);
881 Py_CLEAR(gi->obj);
895 if (gi->obj)
896 return Py_BuildValue("N(O)", iter, gi->obj);
927 gi->obj = Py_NewRef(self);