[Tutor] How to run a script file

Alan Gauld alan.gauld at freenet.co.uk
Wed Jan 5 08:30:30 CET 2005


> Sorry if I missed something obvious, but how do I execute a python
> script file in the interpreter? I have "Using the Python
Interpreter" in
> the Python tutorial but not much is said...

You can import a script at the >>> prompt as you would under
Pythonwin.
Or you can run IDLE much as you did Pythonwin.
Or you can learn emacs and run python mode in that.

Personally I just open a gvim window and a terminal and edit the
code in gvim and run the program in the terminal... If I need
to experiment I open a third window and run the >>> prompt there.
Linux is the IDE...

Alan G.

PS
I just got my own Linux box running again 4 months after
moving house! I thought I'd try a Suse distro I got with
Borlands Kylix and calamity - no python!
Back to Mandrake I think.



More information about the Tutor mailing list