Could embeded Python echo evaluation?
Kim Jeong Ju
haje01 at netsgo.com
Sun Feb 20 13:42:53 EST 2000
When you run Python in console mode, you can see result string after
evaluation without any explicit print command.
>>> 3 + 4
7
>>> dir
<built-in function dir>
But embeded Python doesn't show its result string.
You should specify 'print' command to see the result as in consol mode.
>>> 3 + 4
>>> dir
>>> print 3 + 4
7
>>> print dir
<built-in function dir>
Why this behavior happens?
Are there any way to let Python echoing result automatically in embeded
version?
Thanks in advance.
More information about the Python-list
mailing list