"Steven D'Aprano" <st...@pearwood.info> wrote
The easiest way is to just run forever, and stop when the user
interrupts it with ctrl-D (or ctrl-Z on Windows):
I think that would be Ctrl-C on both.
Ctrl-D/Z is EOF not Interrupt. Certainly on Windows Ctrl-Z won't
interrupt a loop.
But the principle is good and definitely the easiest option.
--
Alan Gauld
Author of the Learn to Program web site
http://www.alan-g.me.uk/
_______________________________________________
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor