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;
>
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
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
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();
>
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();
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();