[issue8104] socket.recv_into doesn't support a memoryview as an argument

Matt Gattis report at bugs.python.org
Wed Mar 10 01:30:00 CET 2010


New submission from Matt Gattis <gattis at gmail.com>:

>>> view = memoryview(bytearray(bufsize))
>>> while len(view):
...    view = view[sock.recv_into(view,1024):]
...
Traceback (most recent call last):
  File "<stdin>", line 2, in <module>
TypeError: recv_into() argument 1 must be pinned buffer, not memoryview

----------
components: IO
messages: 100773
nosy: Matt.Gattis
severity: normal
status: open
title: socket.recv_into doesn't support a memoryview as an argument
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8104>
_______________________________________


More information about the Python-bugs-list mailing list