embedded python question

Keith S. keith_s at ntlworld.nospam.com
Wed Jul 24 03:40:57 EDT 2002


I am writing a small application that has a command line
for entering Python commands, and a message window to show
the Python output.

I've used PyRun_SimpleString(cmd) to execute the command
typed in the command line, and this works fine for simple
statements e.g. print 'hello', but for more complex
expressions e.g a for loop I get an 'Unexpected EOF while
parsing' syntax error.

I'm probably missing something obvious here, but I can't
see it - any ideas?

- Keith




More information about the Python-list mailing list