[issue39655] Shared_Memory attaching to incorrect Address in Windows 10

2020-02-16 Thread Eryk Sun
Eryk Sun added the comment: shared_memory is not the problem here. Your example assumes that a.dtype is int64, but a numpy array defaults to "the minimum type required to hold the objects in the sequence", and the actual minimum depends on the size of the platform `long`. In Windows, a `long

[issue39655] Shared_Memory attaching to incorrect Address in Windows 10

2020-02-16 Thread Orwell
Change by Orwell : -- title: Shared_Memory attaching to incorrect Address in Windows -> Shared_Memory attaching to incorrect Address in Windows 10 ___ Python tracker ___ _

[issue39655] Shared_Memory attaching to incorrect Address in Windows

2020-02-16 Thread Orwell
New submission from Orwell : Shared Memory is attaching to incorrect memory location , ex : retried the documentation example. >>> import numpy as np >>> a = np.array([1, 1, 2, 3, 5, 8]) >>> from multiprocessing import shared_memory >>> shm = shared_memory.SharedMemory(create=True, size=a.nbyte