News for hackers. Stuff that matters.
Re:The optional “else” in Python loops by simonw on Thursday July 17, 2014 @08:31PM (#8051063)
I agree. Intuitively, I would expect for item in list: .... else: ... to execute the "else" clause only if the list was empty and hence the for loop didn't iterate at all.

There are no comments on this comment yet.