Skip to content

Commit aa12f32

Browse files
committed
add PySeqIter_New
1 parent 1b0ce03 commit aa12f32

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#include "capi.h"
2+
3+
PyObject* PySeqIter_New(PyObject *seq) {
4+
if (!PySequence_Check(seq)) {
5+
PyErr_BadInternalCall();
6+
return NULL;
7+
}
8+
return UPCALL_O(PY_BUILTIN, "iter", native_to_java(seq));
9+
}

0 commit comments

Comments
 (0)