Skip to content

Commit 8107662

Browse files
committed
Fix: Don't expand arbitrary sequences in 'PyObject_CallMethod'.
1 parent 7f3dcea commit 8107662

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

graalpython/lib-graalpython/python_cext.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -863,7 +863,10 @@ def PyObject_Call(callee, args, kwargs):
863863

864864

865865
def PyObject_CallMethod(rcvr, method, args):
866-
return getattr(rcvr, method)(*args)
866+
# TODO(fa) that seems to be a workaround
867+
if type(args) is tuple:
868+
return getattr(rcvr, method)(*args)
869+
return getattr(rcvr, method)(args)
867870

868871

869872
@may_raise

0 commit comments

Comments
 (0)