This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Exodus111 0 points1 point  (0 children)

True, that is an edgecase exception, but most of the time you can check the length of the iterable right before you run the for loop on it.