It appears that the website docs are out of date.

The readthedocs documentation shows that there is no p.siblings(): http://leo-editor.readthedocs.org/en/latest/leo.core.html#module-leo.core.leoNodes

-->Jake

On 6/2/2013 2:28 PM, Fidel Pérez wrote:
Well the solution is to use:
self_and_siblings()
But here <http://leoeditor.com/scripting.html>, in the section "iterators", siblings() appears as one of them, but it doesnt work.

On Sunday, June 2, 2013 8:25:52 PM UTC+2, Fidel Pérez wrote:

    Hi, I have gone crazy today to find out that the bug was not on my
    code but in Leo's code, please correct me if im wrong:

    If you execute the following code:

    for sibiling in p.following_siblings():
    g.es <http://g.es>(sibiling.h)

    The log pane will show as expected, but if I execute this code:

    for sibiling in p.siblings():
    g.es <http://g.es>(sibiling.h)

    It will throw an error: "Position' object has no attribute 'siblings'.
    Am I doing something wrong?
    Thanks!

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



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


Reply via email to