On Tue, 25 Oct 2016 11:49 pm, Chris Angelico wrote: > In Python, Ctrl-C raises KeyboardInterrupt. If you want to save your > data, use standard exception handling. (And asking to confirm? Isn't > that exactly what "Press Enter to continue or Ctrl-C to abort" *is*?)
$ Fire missiles? Press Enter to continue or Ctrl-C to abort. ^C $ Are you sure you want to abort? Press Enter to abort or Ctrl-C to abort the abort. ENTER $ Did you mean to abort? Press Enter to continue aborting, or Ctrl-C to abort aborting the abort and continue. ENTER $ Confirm abort: Enter to abort, Ctrl-C to abort. ENTER $ Abort aborted. Missiles fired. -- Steve “Cheer up,” they said, “things could be worse.” So I cheered up, and sure enough, things got worse. -- https://mail.python.org/mailman/listinfo/python-list