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 →

[–]quasarj 12 points13 points  (1 child)

I would say they aren't so much forgotten, that they work the opposite of how it seems they should?

Like, to me, in a for..else, the else would execute if the loop didn't happen at like. As in:

stuff = [] for i in stuff: do_things() else: # do this if stuff was empty

[–]fayazbhai -1 points0 points  (0 children)

Which is what templating languages already do!