26 lines
862 B
Plaintext
26 lines
862 B
Plaintext
From: barry at scottbb.demon.co.uk (Barry Scott)
|
|
Date: Fri, 9 Apr 1999 20:42:37 +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> <7ee5pk$qkm$1@m2.c2.telstra-mm.net.au>
|
|
Message-ID: <923762064.17505.0.nnrp-03.9e982a40@news.demon.co.uk>
|
|
X-UID: 304
|
|
|
|
>Hopefully someone with more time can give a better answer...
|
|
>
|
|
>But the short story is that PyRun_String works with statements, not
|
|
>expressions. You can use it to, eg, import modules, and even call
|
|
>functions, but you cant get the result.
|
|
|
|
I guess I'll have to try and understand how the interactive python shell
|
|
works. (I got lost in the details last time...)
|
|
|
|
This whole area is in need of docs or extra comments in the sources.
|
|
|
|
Barry
|
|
|
|
|
|
|
|
|
|
|
|
|