how to mimic interactive
Johannes Zellner
johannes at zellner.org
Fri Jul 7 12:07:08 EDT 2000
Hello,
how do I design an interactive input loop so that it
feels like called python interactively ? (e.g. prints
results of math operations)
e.g. in a script
while 1:
exec raw_input(prompt)
if I run this script and type
2*3
at the input prompt it does not print the result
as in the interactive python interp.
Short: where do I find the input loop implementation
for interactive python `shells' ?
--
Johannes
More information about the Python-list
mailing list