https://github.com/python/cpython/commit/c398490fbf15ede5de3389b4ca4e32fb9a7c5d67
commit: c398490fbf15ede5de3389b4ca4e32fb9a7c5d67
branch: main
author: Wulian233 <[email protected]>
committer: kumaraditya303 <[email protected]>
date: 2026-04-04T21:04:55+05:30
summary:
gh-148074: Fix `typeobject.c` missing error return (#148075)
files:
M Objects/typeobject.c
diff --git a/Objects/typeobject.c b/Objects/typeobject.c
index b19aee6338dcc0..0ac5377d168812 100644
--- a/Objects/typeobject.c
+++ b/Objects/typeobject.c
@@ -9345,6 +9345,7 @@ type_ready_post_checks(PyTypeObject *type)
PyErr_Format(PyExc_SystemError,
"type %s has a tp_dictoffset that is too small",
type->tp_name);
+ return -1;
}
}
return 0;
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]