On Sun, Dec 12, 2010 at 12:03 AM, SegundoBob <[email protected]> wrote:
> You can chain find_h / find_b with select_h / select_b like this
> to refine an outline search::
>
> pl =
> c.find_h('@thin.*py').select_h('class.*').select_b('import (.*)')
>
> So I tried a few simple tests using select_b() and select_h(). I
> found that select_b() works just as I would expect, but select_h()
> surprised me. Puzzled I looked at the definition of select_h() and
> found "Find immediate child nodes of nodes in poslist with regex."
>
> Wouldn't it be better for select_h() to be consistent with
> select_b()? Wouldn't it be better for them both to search the nodes
> in poslist?
How would you chain select_h's if they merely pruned down the current poslist?
--
Ville M. Vainio @@ Forum Nokia
--
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.