Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b29ae4d commit f72c8ccCopy full SHA for f72c8cc
src/runtime/runtime.cs
@@ -378,29 +378,6 @@ internal static void CheckExceptionOccurred()
378
}
379
380
381
- internal static IntPtr GetBoundArgTuple(IntPtr obj, IntPtr args)
382
- {
383
- if (PyObject_TYPE(args) != PyTupleType)
384
385
- Exceptions.SetError(Exceptions.TypeError, "tuple expected");
386
- return IntPtr.Zero;
387
- }
388
- int size = PyTuple_Size(args);
389
- IntPtr items = PyTuple_New(size + 1);
390
- PyTuple_SetItem(items, 0, obj);
391
- XIncref(obj);
392
-
393
- for (var i = 0; i < size; i++)
394
395
- IntPtr item = PyTuple_GetItem(args, i);
396
- XIncref(item);
397
- PyTuple_SetItem(items, i + 1, item);
398
399
400
- return items;
401
402
403
404
internal static IntPtr ExtendTuple(IntPtr t, params IntPtr[] args)
405
{
406
int size = PyTuple_Size(t);
0 commit comments