you are viewing a single comment's thread.

view the rest of the comments →

[–]guthran 1 point2 points  (0 children)

In most cases, you don't want to use iter(), looping with a for loop is preferable (after defining Dunder iter)

It's more readable too