[Tutor] a line

Alan Gauld alan.gauld at freenet.co.uk
Tue Nov 7 09:28:38 CET 2006


>----- Original Message ----- 
> From: "linda.s" <samrobertsmith at gmail.com>
> To: "Danny Yoo" <dyoo at hkn.eecs.berkeley.edu>
> Cc: "Alan Gauld" <alan.gauld at freenet.co.uk>; "Tutor" 
> <tutor at python.org>
> Sent: Tuesday, November 07, 2006 12:00 AM
> Subject: a line

I can't speak for Danny, but I'd apprreciate if you could just
post your questions to the tutor list and not CC Danny and
me. I suspect you are using an old thread entry to reply, but
nonetheless I get more than enough email as it is, thanks.

> What does
> Pythonw -i test.py -i
> do in Mac machine?

It executes pythonw with the -i option.
Pythonw then executes test.py passing it a -i option.

python -h

will get you a list of all the commandline switches.
-i forces python to end the program and stay in interactive mode
(the >>> prompt), which is very useful for debugging unusual faults.

pythonw runs without a console window.

I assume the same applies on the Mac although I've never
tried using pythonw on my Mac

Alan G. 

More information about the Tutor mailing list