On Sun, Aug 7, 2016 at 1:42 PM, Steven D'Aprano <steve+pyt...@pearwood.info> wrote: > When you read a book, there are two ways of stopping: > > - reach the end, and run out of pages to read, so you stop; > - give up reading early, and just put the book away. > > (Or possibly throw the book across the room.) >
Or someone might rip the book out of your hands (unexpected exception). You don't need to handle that case specifically, but it will terminate the loop. ChrisA -- https://mail.python.org/mailman/listinfo/python-list