[python-win32] Inserting a dictionary of lists into '__main__' of an embedded interpreter

2005-05-27 Thread quadric
Hi, I have an application that has an embedded interpreter. This application loads many DLL's and passes a PyObject * to each DLL that was gotten from the following call: PyObject * pmod = PyImport_AddModule("__main__") ; Later, in one of the many DLL's that interact with the embedded inte

[python-win32] Parsing a Python dictionary inside a Python extension

2005-05-27 Thread quadric
Hi, I would like to pass a dictionary from my Python code to my Python extension, extract various values from the dictionary (from within the extension) , modify the values for the relevant keys and return the modified dictionary to Python. Can someone point me to an example of what the C code

[python-win32] Inserting a dictionary of lists into '__main__' of an embedded interpreter

2005-05-26 Thread quadric
Hi, I have an application that has an embedded interpreter. This application loads many DLL's and passes a PyObject * to each DLL that was gotten from the following call: PyObject * pmod = PyImport_AddModule("__main__") ; Later, in one of the many DLL's that interact with the embedded inte

[python-win32] 'import win32com' fails from within an embedded interpreter

2005-01-28 Thread quadric
I'm hoping someone can give me some advice, or point me in a helpful direction. I've embedded python 2.4 within an application that needs to connect with MS Excel. I've written the python code to communicate with Excel and tested it from the python command line interpreter. It works great! How