[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 20:03:17 BST 2023


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

--- Comment #164 from Dmitry Selyutin <ghostmansd at gmail.com> ---
OK here's yet another set of updates (therefore the PyPI version is bumped):
1. The hook can be injected as a callable which gets type. First we try to
lookup the typeid as is, then we patiently iterate over stuff which looks like
callable.
2. We now can walk over dataclasses, yay! Implemented in terms of
@dispatcher.Hook(dataclasses.is_dataclass) in walker.Walker.
3. Underscores were replaced with __all__, this adds +5 points to charisma.
4. The calls to dispatch are cached via functools.lru_cache.

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


More information about the libre-soc-bugs mailing list