Ned Batchelder: Loop Like A Native
Chris Angelico
rosuav at gmail.com
Sun Aug 7 00:05:32 EDT 2016
On Sun, Aug 7, 2016 at 1:42 PM, Steven D'Aprano
<steve+python at 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
More information about the Python-list
mailing list