Skip to content

Commit c2b5e70

Browse files
committed
Update python_c_extension.rst
Method arguments were not in correct order, line 324.
1 parent 0e65b48 commit c2b5e70

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

python_c_extension.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ and a python list in that order, the function signature would be
321321
int n;
322322
char *s;
323323
PyObject* list;
324-
PyArg_ParseTuple(args, "siO", &n, &s, &list);
324+
PyArg_ParseTuple(args, "siO", &s, &n, &list);
325325
326326
In this case we only have to extract a list object, and store it in the
327327
variable ``listObj``. We then use the ``PyList_Size()`` function on our

0 commit comments

Comments
 (0)