do not know what is wrong python under win2k

Delaney, Timothy tdelaney at avaya.com
Mon Dec 17 18:08:10 EST 2001


> 	>>> python spam.py -i eggs -o bacon

I don't have the book, so I don't know, but if it says to do the above, the
book is broken.

I will assume you are on Windows.

>>> is the python prompt. It means you are already in python.

What you want is to call the line from the OS prompt (on Windows, the DOS
prompt).

So your line should actually look something like:

C:\>python spam.py -i eggs -o bacon
^^^^

Note the prompt! It has a drive letter in it (this will be different on
other platforms).

For other FAQs ... http://www.python.org/doc/FAQ.html.

The above question *really* needs to be added to the FAQ (PSF members!)

Tim Delaney




More information about the Python-list mailing list