News for hackers. Stuff that matters.
Re:Anti-Patterns in Python Programming by doctoboggan on Wednesday July 09, 2014 @01:28PM (#8010936)
I agree that bare excepts are bad, however they do not catch Ctrl-C. If you _do_ want to catch Ctrl-C you have to except a KeyboardInterrupt explicitly.
Re:Anti-Patterns in Python Programming by njharman on Wednesday July 09, 2014 @01:45PM (#8011089)
This is untrue (just tested) for at least Python 2.7.x. under Linux, try ... except catches Ctrl-C.