I want to know if it\'s possible to catch a Control-C in python in the following manner:
if input != contr-c: #DO THINGS else: #quit
From your comments, it sounds like your only problem with except KeyboardInterrupt: is that you don't know how to make it exit when you get that interrupt.
except KeyboardInterrupt:
If so, that's simple:
import sys try: user_input = input() except KeyboardInterrupt: sys.exit(0)