On Mon, 8 Aug 2011 12:24:42 -0500
Kent Tenney <[email protected]> wrote:

>     while True:
>         if not parent:
>             break
>         parents.insert(0, parent.h)
>         parent = parent.getParent()

That seems reasonable,

    while parent:
        parents.insert(0, parent.h)
        parent = parent.getParent()

does the same thing a little more succinctly.

Cheers -Terry

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.

Reply via email to