Embedding python question: PyRun_String only returns None not what I calculate

Barry Scott barry at scottbb.demon.co.uk
Fri Apr 9 15:44:41 EDT 1999


G. David Kuhlman wrote in message ...
>This is not the most convenient solution to your problem, but may
>be useful in your case.
>
>When you embed Python in an application, the application often
>exposes functions that are callable from Python scripts.  You could
>provide a function named setReturnValue(value), which when called,
>passed a Python object (the value).  The script calls this
>function, and then, when it exits, the embedding application (the
>caller of PyRun_String or PyRun_SimpleString) uses the Python value
>saved by this function.

    I thought of that buts its not a help accept in a few cases.


            BArry






More information about the Python-list mailing list