Loading a file into the interpreter
Thomas Womack
twomack at chiark.greenend.org.uk
Mon Aug 18 02:17:15 EDT 2003
I'd like, from the command line of the python interpreter, to get the
effect of having typed in the contents of some text file; the sort of
thing I'd expect a "load" command to do.
I can do "python prog.py", but that doesn't leave me in the
interpreter afterwards, and I'd often like to set some variables, load
a program, and poke about to see what the variables look like
afterwards.
Tom
More information about the Python-list
mailing list