[Libre-soc-bugs] [Bug 1094] insndb instruction database visitor-walker is needed
bugzilla-daemon at libre-soc.org
bugzilla-daemon at libre-soc.org
Mon Jun 19 21:37:03 BST 2023
https://bugs.libre-soc.org/show_bug.cgi?id=1094
--- Comment #191 from Jacob Lifshay <programmerjake at gmail.com> ---
(In reply to Dmitry Selyutin from comment #185)
> With the recent update (not yet pushed), here's what I get:
>
> [0]
> {('a', 1): 3.4, 2: {5, 6}}
> [0, ('a', 1)]
> 3.4
that's fine when the walker never recurses into dict keys.
however, when you want the walker to recurse into keys, then you do need the
additional index to tell if you're visiting the key or the value. this treats a
dict as a collection of key-value pairs rather than just a collection of
values.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the libre-soc-bugs
mailing list