On 2010-08-11, Back9 <backgoo...@gmail.com> wrote: > python myapp.py input_file | more > to see them step by step. > > But when I try to exit it, normally I use Ctrl+ C key to quit it. > Problem is every time I do like it, it shows Traceback message and it > makes my app not professional.
You have three options. 1. Exit more properly. 2. Catch and handle SIGINT yourself. 3. Wrap whatever section of your program is being interrupted in try/except to catch the KeyboardInterrupt exception when it is generated. -- http://mail.python.org/mailman/listinfo/python-list