[issue10837] Issue catching KeyboardInterrupt while reading stdin

2011-03-21 Thread Devin Jeanpierre
Devin Jeanpierre added the comment: I can confirm this behavior on 2.7. On 3.2 for me it prints "done.", but not "Interrupted!" -- nosy: +Devin Jeanpierre ___ Python tracker __

[issue10837] Issue catching KeyboardInterrupt while reading stdin

2011-03-21 Thread Devin Jeanpierre
Devin Jeanpierre added the comment: Sorry, forgot to mention my system. 64-bit Windows 7. -- ___ Python tracker ___ ___ Python-bugs-l

[issue10837] Issue catching KeyboardInterrupt while reading stdin

2011-01-05 Thread Josh Hanson
New submission from Josh Hanson : Example code: try: sys.stdin.read() except KeyboardInterrupt: print "Interrupted!" except: print "Some other exception?" finally: print "cleaning up..." print "done." Test: run the code and hit ctrl-c while

[issue10837] Issue catching KeyboardInterrupt while reading stdin

2011-01-07 Thread Ned Deily
Changes by Ned Deily : -- nosy: +brian.curtin, tim.golden ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http: