echoing input

Greg Wilson gvwilson at nevex.com
Sat Aug 28 12:24:32 EDT 1999


Hi.  Is there a way to get Python to echo the contents of a script while it
is
being loaded?  I have a script called x.py that contains:

# x.py
a = (1, 2, 3)
print a

and I would like to see

a = (1, 2, 3)
print a
(1, 2, 3)

as the output from "python x.py".

Thanks,
Greg






More information about the Python-list mailing list