Niko Matsakis <[EMAIL PROTECTED]> wrote:
>
> > I saw them. Your brain must be wired very differently
> > to mine, because I find loops with a continue in them
> > harder to follow than ones without -- exactly the
> > opposite of what you seem to prefer.
>
> Delurking for no particular reason:
>
> For what it's worth, I also favor the continue syntax Heiko compared
> his code against. Without it, you have to scroll to the end of the
> loop to know whether there is an else clause; it also allows you to
One could also consider documenting the fact that there is no else
clause...
for i in ...:
if ...: #no else clause
...
- Josiah
_______________________________________________
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com