Author eryksun
Recipients OH, eryksun, paul.moore, steve.dower, tim.golden, zach.ware
Date 2020-02-16.21:31:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1581888684.34.0.742731994493.issue39655@roundup.psfhosted.org>
In-reply-to
Content
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` is always 32-bit, regardless of whether the process is 32-bit or 64-bit. If [1, 1], [2, 3], and [5, 8]  are stored as int32 values, then we have the following values when unpacked as 64-bit:

    >>> int.from_bytes(b'\x01\x00\x00\x00\x01\x00\x00\x00', 'little')
    4294967297
    >>> int.from_bytes(b'\x02\x00\x00\x00\x03\x00\x00\x00', 'little')
    12884901890
    >>> int.from_bytes(b'\x05\x00\x00\x00\x08\x00\x00\x00', 'little')
    34359738373
History
Date User Action Args
2020-02-16 21:31:24eryksunsetrecipients: + eryksun, paul.moore, tim.golden, zach.ware, steve.dower, OH
2020-02-16 21:31:24eryksunsetmessageid: <1581888684.34.0.742731994493.issue39655@roundup.psfhosted.org>
2020-02-16 21:31:24eryksunlinkissue39655 messages
2020-02-16 21:31:24eryksuncreate