The point of this post is really to say I have now pushed the unit
tests for select_h & others, but that wouldn't have been such a good
subject line, wouldn't it ;-).

Now that I played with the select_h set of "iterators", I must say
they are definitely the most fun way to walk through leo outlines.

Check the unit test out, and think how much work it would have been
with old-style iterators:

http://pastebin.com/f3d7323d9

Also, being able to leverage python code like this certainly saves the
day after overlong & frustrating day at the office:

assert set(el.h for el in bm).issubset(set(el.h for el in all_bm))

Just do the same in C (which I mostly code with currently) ;-)

-- 
Ville M. Vainio
http://tinyurl.com/vainio

--~--~---------~--~----~------------~-------~--~----~
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