loading files to the interpreter
Ruud de Rooij
* at spam.ruud.org
Mon Aug 7 15:17:54 EDT 2000
"Riku Voipio" <riku.voipio at nospam.iki.fi.invalid> writes:
> Hi,
> While coding, I have both the editor and the interpreter open at the
> same time. I end up testing a lot of the code by cut'n'pastiting them from
> the editor to the interpreter for test purposes.
>
> It would be a lot easier, if I could just type in the interpreter something
> like
>
> >>load("~/programming/foo.py")
>
> instead of copying the whole file (which can be very long). is there a way to
> load code in the "fly"?
execfile
- Ruud de Rooij.
--
ruud de rooij | *@spam.ruud.org | http://ruud.org
More information about the Python-list
mailing list