Behavior of the for-else construct

Jach Feng jfong at ms4.hinet.net
Thu Mar 3 21:22:01 EST 2022


I never feel confused by "else" because I always think it in "break...else", not "for...else". For those who always think in "for...else" deserves this confusion and it can't be just escaped by replacing with another magic word such as "then" or "finally" etc:-)

--Jach



More information about the Python-list mailing list