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. 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()

--
           Wayne Watson (Watson Adventures, Prop., Nevada City, CA)

             (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
              Obz Site:  39° 15' 7" N, 121° 2' 32" W, 2700 feet

               Stop the illegal killing of dolphins and porpoises.
                     <http://www.takepart.com/thecove>
              Wrest the control of the world's fisheries from Japan.

                    Web Page:<www.speckledwithstars.net/>

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to