On 06/10/2013 12:03, Chris Angelico wrote:
On Sun, Oct 6, 2013 at 9:36 PM, Mark Lawrence <breamore...@yahoo.co.uk> wrote:
Also note that a bare except is extremely bad practice, e.g. you can't stop
rogue programs with a CTRL-C
Or to be more accurate, a Ctrl-C will cause a jump to your except
clause. Since, in this instance, that's going to emit and die, Ctrl-C
will still stop the program. But yes, catching KeyboardInterrupt
usually isn't your intention.
ChrisA
Good point, but at least this time I typed "rogue" correctly, unlike on
the tutor mailing list :)
--
Roses are red,
Violets are blue,
Most poems rhyme,
But this one doesn't.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list