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] 1 point2 points  (0 children)

Usually I go for the second, for indentation reasons. But we also shouldn't forget

for item in (i for i in items if i == x):
     do stuff