diff options
author | Guido van Rossum <guido@python.org> | 2001-12-07 03:39:34 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-12-07 03:39:34 (GMT) |
commit | 202dd1ef420359c05814cbfcc5c27e71c90c16d9 (patch) | |
tree | dccbd6b3eef7f95d467647384cc6eb3cc361879b /Grammar | |
parent | eb4b7bad336481a34b2db01cbea809de726f9698 (diff) | |
download | cpython-202dd1ef420359c05814cbfcc5c27e71c90c16d9.zip cpython-202dd1ef420359c05814cbfcc5c27e71c90c16d9.tar.gz cpython-202dd1ef420359c05814cbfcc5c27e71c90c16d9.tar.bz2 |
In unconditional except clauses, don't catch KeyboardInterrupt -- it's
annoying that often you have to hit ^C numerous times before it
works. The solution: before the "except:" clause, insert "except
KeyboardInterrupt: raise". This propagates KeyboardInterrupt out,
stopping the test in its tracks.
Diffstat (limited to 'Grammar')
0 files changed, 0 insertions, 0 deletions