Re: problem with PyMapping_SetItemString()

2009-04-21 Thread rahul
On Apr 22, 12:17 am, Stefan Behnel wrote: > rahul wrote: > > tatic PyObject *upadteCheck(PyObject *self,PyObject *args){ > >    PyObject *var_pyvalue=NULL,*newVar_pyvalue=NULL,*dict=NULL; > >    char *varName; > > >    if (!PyArg_ParseTuple(args, "s", &varName)){ > >                 return NULL; >

Re: problem with PyMapping_SetItemString()

2009-04-21 Thread Aaron Brady
On Apr 21, 2:25 am, rahul wrote: > i have a c extension snip >           dict=PyEval_GetLocals(); snip >           PyMapping_SetItemString(dict,varname,newVar_pyvalue); snip > than first two test cases runs correctly and gives result for var1 > "value changed"  but 3rd test case not gives correct

Re: problem with PyMapping_SetItemString()

2009-04-21 Thread John Machin
On Apr 21, 5:25 pm, rahul wrote: > i have a c extension > > tatic PyObject *upadteCheck(PyObject *self,PyObject *args){ >         PyObject *var_pyvalue=NULL,*newVar_pyvalue=NULL,*dict=NULL; >         char *varName; > >         if (!PyArg_ParseTuple(args, "s", &varName)){ >                 return N

Re: problem with PyMapping_SetItemString()

2009-04-21 Thread Stefan Behnel
rahul wrote: > tatic PyObject *upadteCheck(PyObject *self,PyObject *args){ > PyObject *var_pyvalue=NULL,*newVar_pyvalue=NULL,*dict=NULL; > char *varName; > > if (!PyArg_ParseTuple(args, "s", &varName)){ > return NULL; > } > dict=PyEval_GetLocals(); >

problem with PyMapping_SetItemString()

2009-04-21 Thread rahul
i have a c extension tatic PyObject *upadteCheck(PyObject *self,PyObject *args){ PyObject *var_pyvalue=NULL,*newVar_pyvalue=NULL,*dict=NULL; char *varName; if (!PyArg_ParseTuple(args, "s", &varName)){ return NULL; } dict=PyEval_GetLocals();

problem with PyMapping_SetItemString()

2009-04-21 Thread rahul
i have a c extension tatic PyObject *upadteCheck(PyObject *self,PyObject *args){ PyObject *var_pyvalue=NULL,*newVar_pyvalue=NULL,*dict=NULL; char *varName; if (!PyArg_ParseTuple(args, "s", &varName)){ return NULL; } dict=PyEval_GetLocals();