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);
and later on in a function for a module that i defined expected to extract that handle: PyObject *dict = PyEval_GetGlobals(); // or GetLocals depending on where // execcontext ended up in PyEval_EvalCode PyObject *co = PyDict_GetItemString(dict, "interp"); assert(PyCObject_Check(co)); but i get null co either way and the dict does not match execcontext that is passed into PyEval_EvalCode. any ideas how to fix this? -- http://mail.python.org/mailman/listinfo/python-list