[Tutor] Press Enter to quit. Silently maybe.

bob gailer bgailer at gmail.com
Tue Mar 23 22:16:52 CET 2010


On 3/23/2010 4:47 PM, Wayne Watson wrote:
> I use this code to quit a completed program. If no is selected for the 
> yes/no prompt, warning messages appear in the shell window.

What is the yes/no prompt? Is it in your program or is it a feature of IDLE?

What are the warning messages?

> I'm executing from IDLE. Is there a way to just return to the >>> 
> prompt there?
>
> def finish():
>     print; print "Bye"
>     print
>     raw_input('Press Enter to quit')
>     sys.exit()
>


-- 
Bob Gailer
919-636-4239
Chapel Hill NC



More information about the Tutor mailing list