-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This should fix some bugs where the code was assuming that bytes-like objects were actually bytes|bytearray. It is also much more careful to explicitly release memoryview wrappers rather than relying on the garbage collector. Specifically: - Queue.write (and hence Socket.send) would function incorrectly given a buffer-protocol object whose element size was not byte or whose shape was not 1D. - Socket.recv_into assumed the object supported slice assignment with byte indices, rather than using a memoryview to do the assignment. Additionally, some checks were added on the nbytes parameter to Socket.recv_into.
- Loading branch information
Showing
1 changed file
with
26 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters