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

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Sun Jun 18 19:32:16 BST 2023


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

--- Comment #162 from Dmitry Selyutin <ghostmansd at gmail.com> ---
(In reply to Dmitry Selyutin from comment #160)
>     @mdis.dispatcher.Hook(dataclasses.is_dataclass)
>     def dispatch_dataclass(self, instance):
>         for field in dataclasses.fields(instance):
>             key = field.name
>             value = getattr(instance, key)
>             yield (key, value)
>             yield from self((key, value))

After I thought about it for a while, I think I'm keeping this at base Walker
level. dataclasses is a standard module, hell, let's not force users to invent
that again.

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


More information about the libre-soc-bugs mailing list