Roger House <rho...@sonic.net> writes:

> I tried PyRun_String, but I can't see how it can be used to return a
> tuple (the Py_file_input option always returns None).

There's an example of this at
http://stackoverflow.com/questions/3789881/create-and-call-python-function-from-string-via-c-api

The comments say this took quite a lot of investigation. I believe it
too, since it doesn't exactly leap out from the documentation... The
example returns only a single fixed integer, but changing it to return
a tuple shouldn't be a problem.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to