If we want to integrate C / C ++ into python using the Python internal API. Then the signature of the functions has the following forms
static PyObject *MyFunction( PyObject *self, PyObject *args ); static PyObject *MyFunctionWithKeywords(PyObject *self, PyObject *args, PyObject *kw); static PyObject *MyFunctionWithNoArgs( PyObject *self );
Why are these functions implemented as static?
c ++ c
Siva krishna aleti
source share