PyArg_ParseTuple

Patrick Stinson ajole-1 at gci.net
Wed Jun 9 18:52:14 EDT 2004


does one need to deallocate memory assigned to char * buffers by
PyArg_ParseTuple?

ex:

static PyObject *myfunc(PyObject *self, PyObject *args)
{
   char *stringarg=NULL;
   PyArg_ParseTuple(args, "s", &stringarg);
   return NULL;
}



More information about the Python-list mailing list