[Tutor] Pythonwin
Magnus Lycka
magnus@thinkware.se
Wed Dec 11 09:47:36 2002
At 09:06 2002-12-11 -03-30, Adam Vardy wrote:
>I paste a few lines in PythonWin. Then click Run, and I got a three
>field menu. Making a guess, I figure it wants me to name the Script
>file. So I type a name. And it says File not found!
You don't need to press "run" to execute things interactively.
You use "run" only to execute python code which is in a file.
Sadly, PythonWin (and most other interactive interpreters) can't
handle pasting more than one line at one time. :( As you see, you
don't get the secondary prompts "...".
IPython and psi handles this correctly. Actually, IPython even
allows you to paste code with >>> or ... in the start of the
lines. (But doesn't work well in Windows IIRC.)
To paste code in PythonWin, open a script window, paste the code
there, save and run with F5.
--
Magnus Lycka, Thinkware AB
Alvans vag 99, SE-907 50 UMEA, SWEDEN
phone: int+46 70 582 80 65, fax: int+46 70 612 80 65
http://www.thinkware.se/ mailto:magnus@thinkware.se