R
rick_muller
I'm trying to embed a Python interpreter in a GUI I'm developing, and
I'm having trouble understanding the proper use of
code.InteractiveInterpreter.
Here's what I'm trying:
% python
Python 2.3 (#1, Sep 13 2003, 00:49:11)
[GCC 3.3 20030304 (Apple Computer, Inc. build 1495)] on darwin
Type "help", "copyright", "credits" or "license" for more information.0 0
FalseFile "<input>", line 1
print "hi"
^
SyntaxError: invalid syntax
False
What's the proper way to call the interpreter instance for a multiline
example like this?
Thanks in advance,
Rick
I'm having trouble understanding the proper use of
code.InteractiveInterpreter.
Here's what I'm trying:
% python
Python 2.3 (#1, Sep 13 2003, 00:49:11)
[GCC 3.3 20030304 (Apple Computer, Inc. build 1495)] on darwin
Type "help", "copyright", "credits" or "license" for more information.0 0
FalseFile "<input>", line 1
print "hi"
^
SyntaxError: invalid syntax
False
What's the proper way to call the interpreter instance for a multiline
example like this?
Thanks in advance,
Rick