private data stashed in local/global execution context of PyEval_EvalCode disappears down the execution stack

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Fri Nov 9 20:36:35 EST 2007


En Tue, 06 Nov 2007 23:25:17 -0300, <sndive at gmail.com> escribió:

> i naively created execution context:
>     PyObject *execcontext = PyDict_New();
> stuffed a handle in it:
>     PyObject *ih = PyCObject_FromVoidPtr(handle, NULL);
>     int st= PyDict_SetItemString(res, "interp", ih);

What's `res`?
One should make a lot of assumptions about your code because it's not  
complete. Please post a minimal complete example showing your problem.

-- 
Gabriel Genellina




More information about the Python-list mailing list