Is PyRun_String() broken?

David Gravereaux davygrvy at pobox.com
Wed Jun 6 09:15:43 EDT 2001


Martin von Loewis <loewis at informatik.hu-berlin.de> wrote:

>This is the central problem. Your python::interp object should have
>two commands: exec and eval.

Ahh!

D:\itcl_exp>tclsh84
% load tclpython20
% set i [python::interp new]
python0
% $i exec {import sys}
% $i eval {sys.version}
2.1 (#15, Apr 23 2001, 18:00:35) [MSC 32 bit (Intel)]
% 

It works.  I'm pleased.  Now off to handle thread states and dictionaries, and
should be close to something useable soon :)

Thanks for the enlightenment (to both of you).
--
David Gravereaux <davygrvy at pobox.com>



More information about the Python-list mailing list