Re: ENB: Ahas re paste-retaining-clones

2023-08-14 Thread Edward K. Ream
On Monday, August 14, 2023 at 7:29:47 AM UTC-5 Edward K. Ream wrote: > Here is c. alt_all_unique_nodes: The PR now contains an improved version that doesn't visit children redundantly. The unit tests prove that the redundancy didn't affect the results. Edward -- You received this message be

Re: ENB: Ahas re paste-retaining-clones

2023-08-14 Thread Edward K. Ream
On Sun, Aug 13, 2023 at 8:28 PM HaveF HaveF wrote: > I'm a person who is not good at expression, but I hired GPT4 to express my meaning. Bwahahahaha. Thanks for this. Edward -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from t

Re: ENB: Ahas re paste-retaining-clones

2023-08-14 Thread Edward K. Ream
On Mon, Aug 14, 2023 at 7:22 AM Edward K. Ream wrote: > PR #3473 now contains working code. See *c.recompute_all_parents* and *c.alt_all_unique_nodes*, both covered with unit tests. Here is c. alt_all_unique_nodes: def alt_all_unique_nodes(se

Re: ENB: Ahas re paste-retaining-clones

2023-08-14 Thread Edward K. Ream
On Mon, Aug 14, 2023 at 12:48 AM vitalije wrote: >> We can't use VNode generators because they don't yield VNodes in outline order. > I really don't know where did you get this idea from? You're quite right. There were some brain spikes in my comments. PR #3473

Re: ENB: Ahas re paste-retaining-clones

2023-08-13 Thread vitalije
Actually v_gen2 can be written differently to retain the same API as v_generator: def v_gen2(v): for ch in v.children: yield ch yield from v_gen2(ch) On Monday, August 14, 2023 at 7:48:11 AM UTC+2 vitalije wrote: > Happy birthday to you Edward. But putting birthday aside,

Re: ENB: Ahas re paste-retaining-clones

2023-08-13 Thread vitalije
Happy birthday to you Edward. But putting birthday aside, I can't resist to comment on some parts of your post. On Sunday, August 13, 2023 at 11:31:16 AM UTC+2 Edward K. Ream wrote: Today is my 74th birthday. This Engineering Notebook post is my birthday present to myself. - We can't use VNod

Re: ENB: Ahas re paste-retaining-clones

2023-08-13 Thread Edward K. Ream
On Sunday, August 13, 2023 at 2:17:56 PM UTC-5 Viktor wrote: Another one joining late - but - still in time ;-) There's no rush, hehe. Enjoy your birthday exactly the way you prefer to ! I'm having way too much fun. Time to rejoin my family :-) Edward -- You received this message because

Re: ENB: Ahas re paste-retaining-clones

2023-08-13 Thread Edward K. Ream
On Sun, Aug 13, 2023 at 12:10 PM Edward K. Ream wrote: > c.*alt*_all_positions must use a stack just like Position.stack. True, but c.alt_all_positions is simpler than I dared hope: def alt_all_positions(self) -> Generator: """An alternative implementation of c.all_positions.""" c = self

Re: ENB: Ahas re paste-retaining-clones

2023-08-13 Thread Viktor Ransmayr
Hello Edward, On Sun, 13 Aug 2023, 21:06 Félix, wrote: > Edward, I also want to join my voice to the group in wishing you a happy > birthday! :D Another one joining late - but - still in time ;-) Enjoy your birthday exactly the way you prefer to ! > -- You received this message because you

Re: ENB: Ahas re paste-retaining-clones

2023-08-13 Thread Edward K. Ream
On Sunday, August 13, 2023 at 2:06:19 PM UTC-5 Félix wrote: Edward, I also want to join my voice to the group in wishing you a happy birthday! :D So Happy Birthday, Edward! Another year older, but your programming prowess keeps getting younger! Cheers to you and the adventures your code will t

Re: ENB: Ahas re paste-retaining-clones

2023-08-13 Thread Félix
Edward, I also want to join my voice to the group in wishing you a happy birthday! :D So Happy Birthday, Edward! Another year older, but your programming prowess keeps getting younger! Cheers to you and the adventures your code will take us on! 🚀 Félix On Sunday, August 13, 2023 at 2:31:58 PM

Re: ENB: Ahas re paste-retaining-clones

2023-08-13 Thread Edward K. Ream
On Sun, Aug 13, 2023 at 1:10 PM Thomas Passin wrote: > Best wishes on your birthday from this quarter, too! > :-) 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

Re: ENB: Ahas re paste-retaining-clones

2023-08-13 Thread Thomas Passin
Best wishes on your birthday from this quarter, too! On Sunday, August 13, 2023 at 1:13:18 PM UTC-4 Edward K. Ream wrote: On Sunday, August 13, 2023 at 12:00:43 PM UTC-5 David Szent-Györgyi wrote: > Thank you for working on your birthday and giving a gift to us all. -- You received this mes

Re: ENB: Ahas re paste-retaining-clones

2023-08-13 Thread Edward K. Ream
On Sunday, August 13, 2023 at 12:00:43 PM UTC-5 David Szent-Györgyi wrote: > Thank you for working on your birthday and giving a gift to us all. You're welcome. It's been my pleasure. Edward -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To u

Re: ENB: Ahas re paste-retaining-clones

2023-08-13 Thread Edward K. Ream
On Sun, Aug 13, 2023, Edward K. Ream wrote: >> Is it possible to write [*c.all_vnode_positions*]? > You bet: [snip] > This generator passes the following consistency test: vnodes1 = [c.hiddenRootNode] + [z.v for z in c.all_positions()] vnodes2 = list(c.all_vnode_positions()) assert vnodes1

Re: ENB: Ahas re paste-retaining-clones

2023-08-13 Thread David Szent-Györgyi
On Sunday, August 13, 2023 at 5:31:16 AM UTC-4 Edward K. Ream wrote: Today is my 74th birthday. This Engineering Notebook post is my birthday present to myself. Have the happiest of birthdays. Thank you for working on your birthday and giving a gift to us all. -- You received this message

Re: ENB: Ahas re paste-retaining-clones

2023-08-13 Thread Edward K. Ream
On Sun, Aug 13 Edward K. Ream wrote: > Is it possible to write [*c.all_vnode_positions*]? You bet: def all_vnode_positions(self) -> Generator: c = self to_be_visited: list[VNode] = [c.hiddenRootNode] while to_be_visited: v = to_be_visited.pop() yield v for c

Re: ENB: Ahas re paste-retaining-clones

2023-08-13 Thread Edward K. Ream
On Sun, Aug 13, 2023 at 4:50 AM jkn wrote: > Well, Happy Birthday Edward! ;-) > Thanks :-) 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 leo-editor+un

Re: ENB: Ahas re paste-retaining-clones

2023-08-13 Thread jkn
Well, Happy Birthday Edward! ;-) Regards, Jon N On Sunday, August 13, 2023 at 10:31:16 AM UTC+1 Edward K. Ream wrote: > Today is my 74th birthday. This Engineering Notebook post is my birthday > present to myself. > > > For the last week, I have been trying to make paste-retaining-clones work.

ENB: Ahas re paste-retaining-clones

2023-08-13 Thread Edward K. Ream
Today is my 74th birthday. This Engineering Notebook post is my birthday present to myself. For the last week, I have been trying to make paste-retaining-clones work. Unit tests show this command improperly computes v.parents arrays in the pasted outline. This morning I saw the way forwar