[prev in list] [next in list] [prev in thread] [next in thread]
List: python-list
Subject: Re: embedding
From: "Rich Salz" <salzr () certco ! com>
Date: 1999-08-06 20:35:17
[Download RAW message or body]
The following (excerpted, no error-checking)
PyObject* mod = PyImport_AddModule("__main__");
PyObject* mdict = PyModule_GetDict(mod);
PyObject* obj = get_a_python_object();
PyDict_SetItemString(mdict, "YOUR NAME HERE", pyd);
This seems simpler than Reilly's method. So is my code wrong, or (gasp) is
there More Than One Way To Do It?
/r$
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic