On Fri, May 17, 2013 at 2:42 PM, SegundoBob <[email protected]> wrote:
> This is the scheme I use: > > def delAllChildren(posx): > while True: > pos2 = posx.getLastChild() > if pos2: > pos2.doDelete() > else: > break > This looks like it should work well, because it deletes children in reverse order, which is a standard trick when working with positions. Again, however, I should point out that p.deletePositionsInList is attempting to solve a more genera;, and much harder, problem. Clearly, this is a problem of interest to many people. Solving it, and *proving* that it is solved, is high on my list of to-do items. Edward -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/leo-editor?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out.
