Vitalije, the code you have been showing is very nice indeed. It's short, understandable, and apparently very performant as well. What a pleasure!
I have a question - you say that the nodes_from_leo_xml()function will be used for various paste commands. This way, the xml bits have to be parsed each time the nodes are processed. I would have expected that xml not be used for internal communications, but only for external interactions. I realize that mostly the xml parts are short and quick to parse, but still I would lean to using plain text or even python objects. Are you doing it this way mostly because Leo copies nodes as xml in the first place? On Tuesday, June 2, 2020 at 1:24:11 PM UTC-4, vitalije wrote: > > Here is a function that generates tuples from the xml content: > [snip] > -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/da47a7da-a696-4a3e-9eee-5d23ae8e1a86%40googlegroups.com.
