Skip to content

Commit 3f5b435

Browse files
committed
Revert CallWithArgsTuple signature
1 parent 00756b9 commit 3f5b435

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/IronPython/Runtime/Operations/PythonOps.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1026,7 +1026,7 @@ internal static bool TryInvokeLengthHint(CodeContext context, object? sequence,
10261026
}
10271027

10281028
[Obsolete("Use PythonCalls.Call")]
1029-
public static object? CallWithArgsTuple(object func, object?[] args, IEnumerable argsTuple) {
1029+
public static object? CallWithArgsTuple(object func, object?[] args, object argsTuple) {
10301030
if (argsTuple is PythonTuple tp) {
10311031
object?[] nargs = new object[args.Length + tp.__len__()];
10321032
for (int i = 0; i < args.Length; i++) nargs[i] = args[i];
@@ -1036,7 +1036,7 @@ internal static bool TryInvokeLengthHint(CodeContext context, object? sequence,
10361036

10371037
PythonList allArgs = new PythonList(args.Length + 10);
10381038
allArgs.AddRange(args);
1039-
IEnumerator e = argsTuple.GetEnumerator();
1039+
IEnumerator e = PythonOps.GetEnumerator(DefaultContext.Default, argsTuple);
10401040
while (e.MoveNext()) allArgs.AddNoLock(e.Current);
10411041

10421042
return PythonCalls.Call(func, allArgs.GetObjectArray());

0 commit comments

Comments
 (0)