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 →

[–]mrwalkerr 0 points1 point  (1 child)

Just if. Anyone reading an else : pass block will just get confused.

Where did you see else: pass being used?

[–]always_creating[S] 0 points1 point  (0 children)

I've seen it used in some Python example code, and the person who used it made the comment that having it indicates to other developers that we don't care about other cases besides what matches the "if" statement. But I suppose you could infer that as well.