Re: problem with Py_BuildValue

2008-06-15 Thread Christian Meesters
Thank you so much - I was such an idiot (see below). >>> I see nothing wrong with your code so I'd say it is somewhere else (did >>> you snip any code between the end of the loop and the return?). > >>No. (Apart from freeing allocated memory.) > > I'm pretty sure we'll find something interesting

Re: problem with Py_BuildValue

2008-06-15 Thread Cédric Lucantis
> Thank you. At least I can exclude another few error sources, now. > > >> I see nothing wrong with your code so I'd say it is somewhere else (did >> you snip any code between the end of the loop and the return?). >No. (Apart from freeing allocated memory.) I'm pretty sure we'll find something i

Re: problem with Py_BuildValue

2008-06-15 Thread Christian Meesters
Thank you. At least I can exclude another few error sources, now. Cédric Lucantis wrote: > I see nothing wrong with your code so I'd say it is somewhere else (did > you snip any code between the end of the loop and the return?). No. (Apart from freeing allocated memory.) > I've never > seen tho

Re: problem with Py_BuildValue

2008-06-15 Thread Cédric Lucantis
Hi, > Hi, > > currently I have a problem understanding Py_BuildValue. I have this code: > > static PyObject *function(PyObject *self, PyObject *args) { >PyObject * python_return_value = NULL; >PyObject * dummy = NULL; >double * internal_list; > > >/* converting to python repres

problem with Py_BuildValue

2008-06-15 Thread Christian Meesters
Hi, currently I have a problem understanding Py_BuildValue. I have this code: static PyObject *function(PyObject *self, PyObject *args) { PyObject * python_return_value = NULL; PyObject * dummy = NULL; double * internal_list; /* converting to python representation */ for (i