Echoing evaluation result in embeded Python?
Kim Jeong Ju
haje01 at netsgo.com
Thu Jan 27 15:32:54 EST 2000
When you run Python in console mode, you can see result string after
evaluation.
>>> 3 + 4
7
>>> dir
<built-in function dir>
But Embeded Python doesn't show its result string anymore..
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.
More information about the Python-list
mailing list