Skip Navigation

For loops? That's a weird way of saying try catch

15

You're viewing a single thread.

15 comments
  • It really needs a fourth block that just says "Python".

    (For those who don't get the joke, in Python the way that one exits a loop over an iterator is to keep going until the iterator throws an exception. It sounds dumb at first, but in truth, that's only if you think that exceptions are incredibly heavyweight compared to other operations.)

You've viewed 15 comments.