problem with PyMapping_SetItemString()

Stefan Behnel stefan_ml at behnel.de
Tue Apr 21 21:17:56 CEST 2009


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



More information about the Python-list mailing list