Python class object Sharing between worker processes
<p>Here is my code. I am not getting why it is giving the Error: AttributeError: 'AutoProxy[MySharedClass]' object has no attribute 'dict_'
    import time
    import multiprocessing
    from multiprocessing import Process, Manager
    import multiprocessing.managers as manager</p>

<pre><code>class MySharedClass(object):
    def __init__(self):
        self.dict_ = {}
        self.dict_['one'] = 1
        self.dict_['two'] = 2

class MyManager(manager.BaseManager):
    pass

def test_process(param_object):
    print"Child Process:"
    print param_object.dict_
    param_object.dict_['three'] = 3
    print param_object.dict_
    return param_object


def main_process():
    MyManager.register("MySharedClass", MySharedClass)
    my_manager = MyManager()
    my_manager.start()

    param_object = my_manager.MySharedClass()
    print"Main process:"
    print param_object.dict_
    time.sleep(.2)
    proc = Process(target=test_process, args=(param_object,))
    proc.start()
    print"Process created with id %s" %proc.pid

    time.sleep(10)

    print "Main process End:"
    print param_object.dict_

main_process()
</code></pre>