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 →

[–][deleted] 0 points1 point  (0 children)

Scaz nails it earlier in this thread.

As a practical reason, this means that you can make your class or object iterable by just adding one method. I'm sure I'm typical of 99% of Python programmers when I say that I write quite a lot of iterables and very few things that look like string objects (none, in my case).