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

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Mon Jun 19 21:12:58 BST 2023


https://bugs.libre-soc.org/show_bug.cgi?id=1094

--- Comment #187 from Dmitry Selyutin <ghostmansd at gmail.com> ---
I think sets and frozensets paths are simply hash(item). That is:

    @dispatcher.Hook(set, frozenset)
    def dispatch_unordered_sequence(self, instance, path=[]):
        for item in instance:
            subpath = (path + [hash(item)])
            yield (item, subpath)
            yield from self(item, path=subpath)

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


More information about the libre-soc-bugs mailing list