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

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


>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






More information about the Python-list mailing list