Skip to content

Commit 2077f1a

Browse files
committed
don't unnecessarily re-find args in error case
1 parent 775ed0f commit 2077f1a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Objects/typeobject.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9434,7 +9434,8 @@ do_super_lookup(superobject *su, PyTypeObject *su_type, PyObject *su_obj,
94349434

94359435
skip:
94369436
if (su == NULL) {
9437-
su = (superobject *)PyObject_CallNoArgs((PyObject *)&PySuper_Type);
9437+
PyObject *args[] = {su_type, su_obj};
9438+
su = (superobject *)PyObject_Vectorcall((PyObject *)&PySuper_Type, args, 2, NULL);
94389439
if (su == NULL) {
94399440
return NULL;
94409441
}

0 commit comments

Comments
 (0)