From: barry at scottbb.demon.co.uk (Barry Scott)
Date: Fri, 9 Apr 1999 20:44:41 +0100
Subject: Embedding python question: PyRun_String only returns None not what I calculate
References: <923433832.14002.0.nnrp-07.9e982a40@news.demon.co.uk> <dkuhlmanF9sLro.IGx@netcom.com>
Message-ID: <923762066.17505.1.nnrp-03.9e982a40@news.demon.co.uk>
X-UID: 802                                                  

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






