[Libre-soc-bugs] [Bug 1094] insndb instruction database visitor-walker is needed

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Sat Jun 10 20:46:08 BST 2023


--- Comment #112 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
(In reply to Dmitry Selyutin from comment #109)
> OK, take 2: I committed a simplified version of walkers which yield paths
> too. But, this time, the path of the parent is not passed to the children
> walk algorithm. Each component just yields paths to its children nodes along
> with the nodes itself, and passes these to visitors.

yep no on paths, the visitor instance should be tracking the
path, not the walker. the only thing the walker might also pass
is the index (as an integer not a string): enumerate(subnodes)

this was ok: https://bugs.libre-soc.org/show_bug.cgi?id=1094#c82

sidenote, treewalker does not need depth, self.depth == len(self.paths)

You are receiving this mail because:
You are on the CC list for the bug.

More information about the libre-soc-bugs mailing list