So I have below sample code for extending python with C
#include <python.h>
static PyObject* sayhello(PyObject* self, PyObject *args) {
const char* name;
if (!PyArg_ParseTuple(arg, "s", &name))
return NULL;
printf("Hello %s !\n", name);
Py_RETURN_NONE;
}
static PyMethodDef HelloMethods[] =
{
{"say_hello", say_hello, METH_VARARGS, "Greet Somebody."},
{NULL, NULL, 0, NULL}
};
PyMODINIT_FUNC inithello(void) {
(void) Py_InitModule("hello", HelloMethods);
}
And My question is why below wrapper function static
static PyObject* sayhello(PyObject* self, PyObject *args) {