I have two python classes that share a base class that let's say defines a multiprocessing.Queue.
Each of those classes will be launched on a separate subprocess and need to share info through a queue.
Now, if the base class defines a Queue, then each subclass object will instantiate it's own queue, making the sharing of queue elements impossible. But then again I find this documented
Queue objects should only be shared between processes through inheritance.
So what's the proper way of sharing a Queue between subprocesses and how does the above sentence even make sense?
Note that I can obviously pass a reference to the queue at initialization of the subprocesses but I'd like to takle this problem using inheritance