Commits

Anonymous committed 281dd0b

add combination

  • Participants
  • Parent commits 06c23f3

Comments (0)

Files changed (1)

File convsrc/convsrcmodule.c.src

   Py_RETURN_NONE;
 }
 
+static PyObject *
+combination(PyObject *self, PyObject *args)
+{
+/**begin repeat
+   #b=(1)*3, (2)*3, (3)*3#
+   #a=(1, 2, 3)*3#
+*/
+  printf("combination a=@a@ b=@b@\n");
+/**end repeat**/
+  Py_RETURN_NONE;
+}
+
 static char convsrc_doc[] = "C extention module example\n";
 
 static PyMethodDef methods[] = {
 /**begin repeat
-   #func=fact, hello, goodbye#
+   #func=fact, hello, goodbye, combination#
 */
   {"@func@", (PyCFunction)@func@, METH_VARARGS, "docstring of @func@.\n"},
 /**end repeat**/