[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 23:26:52 BST 2023
    
    
  
https://bugs.libre-soc.org/show_bug.cgi?id=1094
--- Comment #178 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
and (in walker.py)
  22     @dispatcher.Hook(dict)
  23     def dispatch_mapping(self, instance):
  24         for (key, value) in instance.items():
  25             yield (value, key) <--- value (instance) comes first
  26             yield from self((key, value))
value comes first so that it is picked up as instance by dispatch.__call__
  84     def __call__(self, instance, *args):
-- 
You are receiving this mail because:
You are on the CC list for the bug.
    
    
More information about the libre-soc-bugs
mailing list