I am trying to get my head around the new dict data structure. I think I am understanding how to use it in a "regular" setting. Here is what I wanted to try but couldn't make work:
I have a data structure that stores several values like pitch, velocity, channel, etc. putting that together with dict.pack is very easy. Now I would like to store each changed structure in a master dict:
I assumed that I could use dict.group and append each new dict into my master dict. Problem seems to be that dict.pack doesn't output a new reference for a changed dict but the same one, which means I get the same copy of dict for all my keys...
Is dict supposed to be able to do what I want here? Am I missing something fundamental about this data type?