[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 14:19:35 BST 2023


--- Comment #93 from Dmitry Selyutin <ghostmansd at gmail.com> ---
The only disadvantage that such handlers cannot be done inline in the class,
and the visitor class must be passed along with the node class to be hooked.
The decorator cannot deduce the wrapped class from the method itself, since by
the time the decorator is called these methods are not bound yet.

However, this is damn simple, straightforward, and never ever relies on class
names, it relies on objects. And any type is an object in Python.

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

More information about the libre-soc-bugs mailing list