How to streamingly read text file and display whenever updated text

Chris Angelico rosuav at gmail.com
Sun Oct 6 07:03:40 EDT 2013


On Sun, Oct 6, 2013 at 9:36 PM, Mark Lawrence <breamoreboy at 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



More information about the Python-list mailing list