News for hackers. Stuff that matters.
Re:The optional “else” in Python loops by maxerickson on Thursday July 17, 2014 @10:23PM (#8051351)
It's analogous to the natural termination of a while-else, where the else block is executed after the condition evaluates to false:

    >>> a=1
    >>> while a>0:
        print(4)
        a=a-1
    else:
        print('done')
        
    4
    done
clarity cribbed from here: https://mail.python.org/pipermail/python-list/1999-July/0044...
Re:The optional “else” in Python loops by MBlume on Friday July 18, 2014 @07:44PM (#8056134)
Oh, that helps too -- it's an else clause for the conditional of the while loop :D