I am to stupid to embedd python - pls help

businessnews.de.uu.net Boris.Ottlewski at NOSPAMsystemsoft.de
Thu Mar 9 12:26:07 CET 2000


Hi,

I just want to write a small program:

1.Run a python script that is in a varibale
2.Read a python string variable into a C char variable.

( like this:
Py_Initialize();
PyRun_SimpleString(MyCode);
result=PyGetAVar("varname_here", MyVar);
)

Somehow the python documentation is killing me. There's Get_Var like in Tcl,
I somehow thing its something with PyDict...

An example is greatly appreciated!

byebye

Boris Ottlewski - SystemSoft





More information about the Python-list mailing list