Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
don't unnecessarily re-find args in error case
  • Loading branch information
carljm committed Apr 14, 2023
commit 2077f1a676e1e8b580c715f70451e91b9db72f48
3 changes: 2 additions & 1 deletion Objects/typeobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -9434,7 +9434,8 @@ do_super_lookup(superobject *su, PyTypeObject *su_type, PyObject *su_obj,

skip:
if (su == NULL) {
su = (superobject *)PyObject_CallNoArgs((PyObject *)&PySuper_Type);
PyObject *args[] = {su_type, su_obj};
su = (superobject *)PyObject_Vectorcall((PyObject *)&PySuper_Type, args, 2, NULL);
if (su == NULL) {
return NULL;
}
Expand Down