hi, i try to embed some python code in C, namely:
----------------------------
import zlib
def fun(s):
return zlib.compress(s)
----------------------------
and execute it by PyRunString() and finally call my function by
PyObject_CallFunction()
my question is why i receive error like 'zlib not found' but when i run
PyRun_SimpleString("import zlib"); before calling
PyObject_CallFunction() everything is OK?
peter
--
http://mail.python.org/mailman/listinfo/python-list
