There was an error while loading. Please reload this page.
ga_getitem
NULL
1 parent 6505bda commit bb802dbCopy full SHA for bb802db
1 file changed
Objects/genericaliasobject.c
@@ -563,6 +563,10 @@ ga_getitem(PyObject *self, PyObject *item)
563
}
564
565
PyObject *res = Py_GenericAlias(alias->origin, newargs);
566
+ if (res == NULL) {
567
+ Py_DECREF(newargs);
568
+ return NULL;
569
+ }
570
((gaobject *)res)->starred = alias->starred;
571
572
Py_DECREF(newargs);
0 commit comments