Re: Replacing call to PyObject_CallObject with PyEval_CallFunction

2008-01-29 Thread grbgooglefan
On Jan 30, 1:58 pm, Gabriel Genellina <[EMAIL PROTECTED]> wrote: > On 30 ene, 01:58, grbgooglefan <[EMAIL PROTECTED]> wrote: > > > How do I pass the elements populated in struct variables of this > > vector dynamically to PyEval_CallFunction, in the fashion somewhat > > like below? > > PyEval_CallF

Re: Replacing call to PyObject_CallObject with PyEval_CallFunction

2008-01-29 Thread Gabriel Genellina
On 30 ene, 01:58, grbgooglefan <[EMAIL PROTECTED]> wrote: > How do I pass the elements populated in struct variables of this > vector dynamically to PyEval_CallFunction, in the fashion somewhat > like below? > PyEval_CallFunction(obj, "iii", > vector[0].ioparam->nionum,vector[1].ioparam->nionum,v

Replacing call to PyObject_CallObject with PyEval_CallFunction

2008-01-29 Thread grbgooglefan
Hello Python Experts May you please help me on this change? I have following code: //== typedef struct IOParams { char *ioString; long lionum; double dionum; float fionum; intnionum; } *pIOParams; //