I want to share a list of dictionaries between multiple processes like the following:
msgs = [{ 1: "A", 2: "B"},
{20 : "AAA", 30 : "BBB"},
{100 : "777", 200 : "888"}]
I've looked at the other posts regarding how to use Manager dicts but they don't show to to make a list of another type (dict in this case)
For example: how can I share a dictionary across multiple processes?
^Unfortunately, I wasn't able to extend that to what I want. Also, I am not using a pool of processes. I have 3 separate processes that I've instantiated.
Would anyone be able to show me an example of how to make a list of dictionaries that can be shared across processes?