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

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Fri Jun 9 21:03:47 BST 2023


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

--- Comment #70 from Dmitry Selyutin <ghostmansd at gmail.com> ---
Meanwhile I've added a functionality to walk over classes in a generic way.
Something intermediate between classmethod decorator and usual method, with the
except that the newly added decorator can accept either class or instance.
Example:

>>> print(tuple(Record.walk()))
(<class 'openpower.insndb.core.String'>, <class
'openpower.insndb.core.Section'>, <class 'openpower.insndb.core.PPCRecord'>,
<class 'openpower.insndb.core.Fields'>, <class
'openpower.insndb.core.MarkdownRecord'>, <class
'openpower.insndb.core.SVP64Record'>)

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


More information about the libre-soc-bugs mailing list