theh...@gmail.com: > You seem to have missed the point. Nobody is suggesting, I don't > believe, that all of a language should be intuitive. Rather that if > any part of it is unnecessarily counter-intuitive, it may be worth > looking for a better solution. Python is a very well designed language > when it comes to in linguistic presentation. In this case however, it > is not only unintuitive but counter-intuitive.
The for-else construct is a highly practical feature. It is in no way inherently counter-intuitive. As any new thing, it needs to be learned and used to be appreciated. Marko -- https://mail.python.org/mailman/listinfo/python-list