[issue37637] multiprocessing numpy.ndarray not transmitted properly

Benedikt Bieringer report at bugs.python.org
Sat Jul 20 14:11:38 EDT 2019


New submission from Benedikt Bieringer <2xB.coding at wwu.de>:

The following code demonstrates the issue:

import numpy as np
from multiprocessing import Pipe
p1, p2 = Pipe()
arr = np.zeros((3, 5, 6), dtype=np.uint8)
p2.send_bytes(arr)
pm = p1.recv_bytes()
print(pm)

Only 3 bytes are transmitted for this array which obviously consists of more than 3 bytes.

----------
components: Library (Lib)
messages: 348218
nosy: 2xB
priority: normal
severity: normal
status: open
title: multiprocessing numpy.ndarray not transmitted properly
type: behavior
versions: Python 3.6

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37637>
_______________________________________


More information about the Python-bugs-list mailing list