problem with PyMapping_SetItemString()

rahul rahul03535 at gmail.com
Wed Apr 22 00:44:53 EDT 2009


On Apr 22, 12:17 am, Stefan Behnel <stefan... at behnel.de> 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;
> >       }
> >      dict=PyEval_GetLocals();
> >      var_pyvalue=PyMapping_GetItemString(dict,varName);
>
> >      if(inObject==NULL){
> >            dict=PyEval_GetGlobals();
> >            var_pyvalue=PyMapping_GetItemString(dict,varName);
> >      }
>
> what's "inObject"?
>
> Stefan

Hi Stefan,
   That was due to type error, "inObject" is actually "var_pyvalue"

----
   rahul



More information about the Python-list mailing list