[Tutor] PYTHON ON DOS

Lie Ryan lie.1296 at gmail.com
Fri Nov 14 19:45:22 CET 2008


On Fri, 14 Nov 2008 10:27:59 -0800, WM. wrote:

> Some say that Python programs run better on DOS.  I cannot find a way to
> do that.  I can go 'Python Command Line' to wind up on a black screen
> version of IDLE but I can't get from the interactive to executive mode.
> 
> Is there any advantage to running .py on DOS?

1.
XP: Start > Run > type "cmd" > OK
Vista: Start > type "cmd" > Enter

2.
then cd to the folder where you put the script:
C:\> cd C:\mypython\

3.
then run the program by typing "python blah.py"
C:\mypython\> python blah.py

PS:
strictly speaking Windows doesn't have true DOS since NT-family. The 
black window is a command prompt, somewhat an emulator for DOS.



More information about the Tutor mailing list