This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author davin
Recipients
Date 2019-09-09.16:36:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id
In-reply-to
Content
I believe you want to modify your sending of bytes to read:
p2.send_bytes(arr.tobytes())

The docs on send_bytes explains that it expects a bytes-like object.  NumPy arrays do not qualify by themselves but they can be readily converted.

To reconstruct that array from the 90 bytes received into the variable pm:
np.frombuffer(pm, dtype=np.int8).reshape((3, 5, 6))
History
Date User Action Args
2019-09-09 16:36:18davinlinkissue37637 messages
2019-09-09 16:36:17davincreate