Python 2.7: implementing `multiprocessing` and shared memory on Windows causing attribute errors
I'm working on a personal project and I'm trying to figure out I'm relatively new to this, so bear with me. I'm working with an scenario when using the `multiprocessing` module in Python 2.7 on a Windows environment. I have a simple project where I'm trying to share a list of numbers between processes to perform some calculations. However, when I attempt to access the shared list from one of the subprocesses, I receive an `AttributeError`, specifically stating that the 'list' object has no attribute 'value'. I've tried using both `Array` and `Value` from `multiprocessing`, but I need to seem to get the list to be shared correctly. Here's a snippet of my code: ```python from multiprocessing import Process, Manager def worker(shared_list): print(shared_list) shared_list.append(4) if __name__ == '__main__': manager = Manager() shared_list = manager.list([1, 2, 3]) # Trying to create a shared list p = Process(target=worker, args=(shared_list,)) p.start() p.join() print(shared_list) ``` When I run this code, I get the following behavior message: ``` AttributeError: 'list' object has no attribute 'value' ``` I've also attempted to use the `Array` type to store integers directly, but I end up with a similar question when trying to append to it. I'm unsure if this is due to the way Windows handles shared memory or if I'm misusing the `multiprocessing` module. Is there a workaround or a proper way to share a list between processes in Python 2.7 on Windows? Any guidance would be greatly appreciated! This is part of a larger web app I'm building. How would you solve this? Could someone point me to the right documentation? The stack includes Python and several other technologies. Is there a simpler solution I'm overlooking? Any ideas how to fix this?