Skip to content

Commit db07de6

Browse files
committed
Add function '_PyObject_CallMethod_SizeT' for binary compatibility.
1 parent fcb60f7 commit db07de6

File tree

1 file changed

+6
-0
lines changed
  • graalpython/com.oracle.graal.python.cext/src

1 file changed

+6
-0
lines changed

graalpython/com.oracle.graal.python.cext/src/object.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,12 @@ PyObject* PyObject_CallMethod(PyObject* object, const char* method, const char*
243243
return UPCALL_CEXT_O(_jls_PyObject_CallMethod, native_to_java(object), polyglot_from_string(method, SRC_CS), native_to_java(args));
244244
}
245245

246+
PyObject* _PyObject_CallMethod_SizeT(PyObject* object, const char* method, const char* fmt, ...) {
247+
PyObject* args;
248+
CALL_WITH_VARARGS(args, Py_BuildValue, 3, fmt);
249+
return UPCALL_CEXT_O(_jls_PyObject_CallMethod, native_to_java(object), polyglot_from_string(method, SRC_CS), native_to_java(args));
250+
}
251+
246252
UPCALL_ID(type);
247253
PyObject* PyObject_Type(PyObject* obj) {
248254
return UPCALL_O(PY_BUILTIN, _jls_type, native_to_java(obj));

0 commit comments

Comments
 (0)