* Terry Reedy <[EMAIL PROTECTED]> [2007-11-16 18:31:12 -0500]:

> 
> "Gustavo Carneiro" <[EMAIL PROTECTED]> wrote in message 
> news:[EMAIL PROTECTED]
> |I am finding myself often doing for loops over a subset of a list, like:
> |
> |        for r in results:
> |            if r.numNodes != numNodes:
> |                continue
> |            # do something with r
> 
> Why write it backwards?
> 
> for r in results:
>   if r.numNodes == numNodes
>     # do something with r
> 
> is the direct parallel with the below code.

The extra level of indentation is awkward.
-- 
mithrandi, i Ainil en-Balandor, a faer Ambar

Attachment: signature.asc
Description: Digital signature

_______________________________________________
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

Reply via email to