2007-04-06から1日間の記事一覧
Cの関数とPythonをつなげるための準備。 メソッドテーブルを作る。 static PyMethodDef SpamMethods[] = { ... {"system", spam_system, METH_VARARGS, "Execute a shell command."}, ... {NULL, NULL, 0, NULL} /* Sentinel */ }; PyMethodDefは 名前 C関数…
Cの関数とPythonをつなげるための準備。 メソッドテーブルを作る。 static PyMethodDef SpamMethods[] = { ... {"system", spam_system, METH_VARARGS, "Execute a shell command."}, ... {NULL, NULL, 0, NULL} /* Sentinel */ }; PyMethodDefは 名前 C関数…